1 | [package] |
2 | authors = [ |
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 | ] |
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.64.0" |
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 = "1.0.99" , 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 | shlex = "1" |
39 | rustc-hash = "1.0.1" |
40 | proc-macro2 = { version = "1" , default-features = false } |
41 | log = { version = "0.4" , optional = true } |
42 | |
43 | [features] |
44 | default = ["logging" , "runtime" , "which-rustfmt" ] |
45 | logging = ["log" ] |
46 | static = ["clang-sys/static" ] |
47 | runtime = ["clang-sys/runtime" ] |
48 | # Dynamically discover a `rustfmt` binary using the `which` crate |
49 | which-rustfmt = ["which" ] |
50 | cli = [] |
51 | experimental = [] |
52 | |
53 | # These features only exist for CI testing -- don't use them if you're not hacking |
54 | # on bindgen! |
55 | testing_only_docs = [] |
56 | testing_only_extra_assertions = [] |
57 | testing_only_libclang_9 = [] |
58 | testing_only_libclang_5 = [] |
59 | |