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.59.2" 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" 46tempfile = "3" 47 48[dependencies] 49bitflags = "1.0.3" 50cexpr = "0.6" 51# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982 52clap = { version = "2", optional = true } 53clang-sys = { version = "1", features = ["clang_6_0"] } 54lazycell = "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"]} 59which = { version = "4.2.1", optional = true, default-features = false } 60shlex = "1" 61rustc-hash = "1.0.1" 62proc-macro2 = { version = "1", default-features = false } 63 64[dependencies.env_logger] 65optional = true 66version = "0.9.0" 67 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 = [] 88