1[package] 2authors = [ 3 "The rust-bindgen project contributors", 4] 5description = "Automatically generates Rust FFI bindings to C and C++ libraries." 6keywords = ["bindings", "ffi", "code-generation"] 7categories = ["external-ffi-bindings", "development-tools::ffi"] 8license = "BSD-3-Clause" 9name = "bindgen-cli" 10readme = "../README.md" 11repository = "https://github.com/rust-lang/rust-bindgen" 12documentation = "https://docs.rs/bindgen" 13homepage = "https://rust-lang.github.io/rust-bindgen/" 14version = "0.70.1" 15edition = "2018" 16rust-version = "1.70.0" 17 18[[bin]] 19path = "main.rs" 20name = "bindgen" 21 22[dependencies] 23bindgen = { path = "../bindgen", version = "=0.70.1", default-features = false, features = ["__cli", "experimental", "prettyplease"] } 24clap = { version = "4", features = ["derive"] } 25clap_complete = "4" 26env_logger = { version = "0.10.0", optional = true } 27log = { version = "0.4", optional = true } 28shlex = "1" 29 30[features] 31default = ["logging", "runtime"] 32logging = ["bindgen/logging", "dep:env_logger", "dep:log"] 33static = ["bindgen/static"] 34runtime = ["bindgen/runtime"] 35prettyplease = ["bindgen/prettyplease"] 36 37## The following features are for internal use and they shouldn't be used if 38## you're not hacking on bindgen 39# Features used for CI testing 40__testing_only_extra_assertions = ["bindgen/__testing_only_extra_assertions"] 41__testing_only_libclang_9 = ["bindgen/__testing_only_libclang_9"] 42__testing_only_libclang_16 = ["bindgen/__testing_only_libclang_16"] 43 44[package.metadata.release] 45release = true 46 47[package.metadata.dist] 48dist = true 49