blob: dd30f09cebc6a5c55521774c544273742770dab5 [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/"
Joel Galenson64466032021-04-16 11:01:36 -070017version = "0.58.1"
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"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070046
47[dependencies]
48bitflags = "1.0.3"
49cexpr = "0.4"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070050# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982
51clap = { version = "2", optional = true }
Haibo Huang14d11d42020-08-24 19:24:42 -070052clang-sys = { version = "1", features = ["clang_6_0"] }
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070053lazycell = "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 }
Joel Galenson64466032021-04-16 11:01:36 -070059shlex = "1"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070060rustc-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
Haibo Huang5b14a8d2020-11-26 04:11:37 -080067version = "0.8"
Chih-Hung Hsieh91a38de2020-04-07 14:24:01 -070068
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 = []