• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2authors = [
3  "Jyun-Yan You <jyyou.tw@gmail.com>",
4  "Emilio Cobos Álvarez <emilio@crisal.io>",
5  "Nick Fitzgerald <fitzgen@gmail.com>",
6  "The Servo project developers",
7]
8description = "Automatically generates Rust FFI bindings to C and C++ libraries."
9keywords = ["bindings", "ffi", "code-generation"]
10categories = ["external-ffi-bindings", "development-tools::ffi"]
11license = "BSD-3-Clause"
12name = "bindgen"
13readme = "README.md"
14repository = "https://github.com/rust-lang/rust-bindgen"
15documentation = "https://docs.rs/bindgen"
16homepage = "https://rust-lang.github.io/rust-bindgen/"
17version = "0.58.1"
18edition = "2018"
19build = "build.rs"
20
21include = [
22  "LICENSE",
23  "README.md",
24  "Cargo.toml",
25  "build.rs",
26  "src/*.rs",
27  "src/**/*.rs",
28]
29
30[badges]
31travis-ci = { repository = "rust-lang/rust-bindgen" }
32
33[lib]
34path = "src/lib.rs"
35
36[[bin]]
37name = "bindgen"
38path = "src/main.rs"
39doc = false
40required-features = ["clap"]
41
42[dev-dependencies]
43diff = "0.1"
44clap = "2"
45shlex = "1"
46
47[dependencies]
48bitflags = "1.0.3"
49cexpr = "0.4"
50# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982
51clap = { version = "2", optional = true }
52clang-sys = { version = "1", features = ["clang_6_0"] }
53lazycell = "1"
54lazy_static = "1"
55peeking_take_while = "0.1.2"
56quote = { version = "1", default-features = false }
57regex = { version = "1.0", default-features = false , features = [ "std", "unicode"]}
58which = { version = "3.0", optional = true, default-features = false }
59shlex = "1"
60rustc-hash = "1.0.1"
61# New validation in 0.3.6 breaks bindgen-integration:
62# https://github.com/alexcrichton/proc-macro2/commit/489c642.
63proc-macro2 = { version = "1", default-features = false }
64
65[dependencies.env_logger]
66optional = true
67version = "0.8"
68
69[dependencies.log]
70optional = true
71version = "0.4"
72
73[features]
74default = ["logging", "clap", "runtime", "which-rustfmt"]
75logging = ["env_logger", "log"]
76static = ["clang-sys/static"]
77runtime = ["clang-sys/runtime"]
78# Dynamically discover a `rustfmt` binary using the `which` crate
79which-rustfmt = ["which"]
80
81# These features only exist for CI testing -- don't use them if you're not hacking
82# on bindgen!
83testing_only_docs = []
84testing_only_extra_assertions = []
85testing_only_libclang_9 = []
86testing_only_libclang_5 = []
87testing_only_libclang_4 = []
88testing_only_libclang_3_9 = []
89