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.64.0" 18edition = "2018" 19build = "build.rs" 20# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml 21rust-version = "1.60.0" 22 23[lib] 24name = "bindgen" 25path = "./lib.rs" 26 27[dependencies] 28bitflags = "1.0.3" 29cexpr = "0.6" 30clang-sys = { version = "1", features = ["clang_6_0"] } 31lazycell = "1" 32lazy_static = "1" 33peeking_take_while = "0.1.2" 34quote = { version = "1", default-features = false } 35syn = { version = "1.0.99", features = ["full", "extra-traits", "visit-mut"]} 36regex = { version = "1.5", default-features = false , features = ["std", "unicode"] } 37which = { version = "4.2.1", optional = true, default-features = false } 38shlex = "1" 39rustc-hash = "1.0.1" 40proc-macro2 = { version = "1", default-features = false } 41log = { version = "0.4", optional = true } 42 43[features] 44default = ["logging", "runtime", "which-rustfmt"] 45logging = ["log"] 46static = ["clang-sys/static"] 47runtime = ["clang-sys/runtime"] 48# Dynamically discover a `rustfmt` binary using the `which` crate 49which-rustfmt = ["which"] 50cli = [] 51experimental = [] 52 53# These features only exist for CI testing -- don't use them if you're not hacking 54# on bindgen! 55testing_only_docs = [] 56testing_only_extra_assertions = [] 57testing_only_libclang_9 = [] 58testing_only_libclang_5 = [] 59