| 1 |
[package] |
| 2 |
authors = [ |
| 3 |
"Jyun-Yan You <[email protected]>", |
| 4 |
"Emilio Cobos Álvarez <[email protected]>", |
| 5 |
"Nick Fitzgerald <[email protected]>", |
| 6 |
"The Servo project developers", |
| 7 |
] |
| 8 |
description = "Automatically generates Rust FFI bindings to C and C++ libraries." |
| 9 |
keywords = ["bindings", "ffi", "code-generation"] |
| 10 |
categories = ["external-ffi-bindings", "development-tools::ffi"] |
| 11 |
license = "BSD-3-Clause" |
| 12 |
name = "bindgen" |
| 13 |
readme = "../README.md" |
| 14 |
repository = "https://github.com/rust-lang/rust-bindgen" |
| 15 |
documentation = "https://docs.rs/bindgen" |
| 16 |
homepage = "https://rust-lang.github.io/rust-bindgen/" |
| 17 |
version = "0.65.1" |
| 18 |
edition = "2018" |
| 19 |
build = "build.rs" |
| 20 |
# If you change this, also update README.md and msrv in .github/workflows/bindgen.yml |
| 21 |
rust-version = "1.60.0" |
| 22 |
|
| 23 |
[lib] |
| 24 |
name = "bindgen" |
| 25 |
path = "lib.rs" |
| 26 |
|
| 27 |
[dependencies] |
| 28 |
bitflags = "1.0.3" |
| 29 |
cexpr = "0.6" |
| 30 |
clang-sys = { version = "1", features = ["clang_6_0"] } |
| 31 |
lazycell = "1" |
| 32 |
lazy_static = "1" |
| 33 |
peeking_take_while = "0.1.2" |
| 34 |
quote = { version = "1", default-features = false } |
| 35 |
syn = { version = "2.0", features = ["full", "extra-traits", "visit-mut"]} |
| 36 |
regex = { version = "1.5", default-features = false , features = ["std", "unicode"] } |
| 37 |
which = { version = "4.2.1", optional = true, default-features = false } |
| 38 |
prettyplease = { version = "0.2.0" } |
| 39 |
annotate-snippets = { version = "0.9.1", features = ["color"], optional = true } |
| 40 |
shlex = "1" |
| 41 |
rustc-hash = "1.0.1" |
| 42 |
proc-macro2 = { version = "1", default-features = false } |
| 43 |
log = { version = "0.4", optional = true } |
| 44 |
|
| 45 |
[features] |
| 46 |
default = ["logging", "runtime", "which-rustfmt"] |
| 47 |
logging = ["log"] |
| 48 |
static = ["clang-sys/static"] |
| 49 |
runtime = ["clang-sys/runtime"] |
| 50 |
# Dynamically discover a `rustfmt` binary using the `which` crate |
| 51 |
which-rustfmt = ["which"] |
| 52 |
__cli = [] |
| 53 |
experimental = ["annotate-snippets"] |
| 54 |
|
| 55 |
# These features only exist for CI testing -- don't use them if you're not hacking |
| 56 |
# on bindgen! |
| 57 |
testing_only_extra_assertions = [] |
| 58 |
testing_only_libclang_9 = [] |
| 59 |
testing_only_libclang_5 = [] |