blob: ba41a22dbbfc5913a1f36d941fa671e57d290259 [file] [log] [blame]
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -07001[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/"
David LeGare19fbac62022-03-01 18:49:41 +000017version = "0.59.2"
Haibo Huang43183df2020-05-25 23:17:13 -070018edition = "2018"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070019build = "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"
Joel Galenson64466032021-04-16 11:01:36 -070045shlex = "1"
Joel Galenson4c81ebb2021-08-09 10:25:17 -070046tempfile = "3"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070047
48[dependencies]
49bitflags = "1.0.3"
David LeGare19fbac62022-03-01 18:49:41 +000050cexpr = "0.6"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070051# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982
52clap = { version = "2", optional = true }
Haibo Huang14d11d42020-08-24 19:24:42 -070053clang-sys = { version = "1", features = ["clang_6_0"] }
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070054lazycell = "1"
55lazy_static = "1"
56peeking_take_while = "0.1.2"
57quote = { version = "1", default-features = false }
58regex = { version = "1.0", default-features = false , features = [ "std", "unicode"]}
David LeGare19fbac62022-03-01 18:49:41 +000059which = { version = "4.2.1", optional = true, default-features = false }
Joel Galenson64466032021-04-16 11:01:36 -070060shlex = "1"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070061rustc-hash = "1.0.1"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070062proc-macro2 = { version = "1", default-features = false }
63
64[dependencies.env_logger]
65optional = true
David LeGare19fbac62022-03-01 18:49:41 +000066version = "0.9.0"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070067
68[dependencies.log]
69optional = true
70version = "0.4"
71
72[features]
73default = ["logging", "clap", "runtime", "which-rustfmt"]
74logging = ["env_logger", "log"]
75static = ["clang-sys/static"]
76runtime = ["clang-sys/runtime"]
77# Dynamically discover a `rustfmt` binary using the `which` crate
78which-rustfmt = ["which"]
79
80# These features only exist for CI testing -- don't use them if you're not hacking
81# on bindgen!
82testing_only_docs = []
83testing_only_extra_assertions = []
84testing_only_libclang_9 = []
85testing_only_libclang_5 = []
86testing_only_libclang_4 = []
87testing_only_libclang_3_9 = []