Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 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/" |
David LeGare | 19fbac6 | 2022-03-01 18:49:41 +0000 | [diff] [blame] | 17 | version = "0.59.2" |
Haibo Huang | 43183df | 2020-05-25 23:17:13 -0700 | [diff] [blame] | 18 | edition = "2018" |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 19 | build = "build.rs" |
| 20 | |
| 21 | include = [ |
| 22 | "LICENSE", |
| 23 | "README.md", |
| 24 | "Cargo.toml", |
| 25 | "build.rs", |
| 26 | "src/*.rs", |
| 27 | "src/**/*.rs", |
| 28 | ] |
| 29 | |
| 30 | [badges] |
| 31 | travis-ci = { repository = "rust-lang/rust-bindgen" } |
| 32 | |
| 33 | [lib] |
| 34 | path = "src/lib.rs" |
| 35 | |
| 36 | [[bin]] |
| 37 | name = "bindgen" |
| 38 | path = "src/main.rs" |
| 39 | doc = false |
| 40 | required-features = ["clap"] |
| 41 | |
| 42 | [dev-dependencies] |
| 43 | diff = "0.1" |
| 44 | clap = "2" |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 45 | shlex = "1" |
Joel Galenson | 4c81ebb | 2021-08-09 10:25:17 -0700 | [diff] [blame] | 46 | tempfile = "3" |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 47 | |
| 48 | [dependencies] |
| 49 | bitflags = "1.0.3" |
David LeGare | 19fbac6 | 2022-03-01 18:49:41 +0000 | [diff] [blame] | 50 | cexpr = "0.6" |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 51 | # This kinda sucks: https://github.com/rust-lang/cargo/issues/1982 |
| 52 | clap = { version = "2", optional = true } |
Haibo Huang | 14d11d4 | 2020-08-24 19:24:42 -0700 | [diff] [blame] | 53 | clang-sys = { version = "1", features = ["clang_6_0"] } |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 54 | lazycell = "1" |
| 55 | lazy_static = "1" |
| 56 | peeking_take_while = "0.1.2" |
| 57 | quote = { version = "1", default-features = false } |
| 58 | regex = { version = "1.0", default-features = false , features = [ "std", "unicode"]} |
David LeGare | 19fbac6 | 2022-03-01 18:49:41 +0000 | [diff] [blame] | 59 | which = { version = "4.2.1", optional = true, default-features = false } |
Joel Galenson | 6446603 | 2021-04-16 11:01:36 -0700 | [diff] [blame] | 60 | shlex = "1" |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 61 | rustc-hash = "1.0.1" |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 62 | proc-macro2 = { version = "1", default-features = false } |
| 63 | |
| 64 | [dependencies.env_logger] |
| 65 | optional = true |
David LeGare | 19fbac6 | 2022-03-01 18:49:41 +0000 | [diff] [blame] | 66 | version = "0.9.0" |
Chih-Hung Hsieh | 91a38de | 2020-04-07 14:24:01 -0700 | [diff] [blame] | 67 | |
| 68 | [dependencies.log] |
| 69 | optional = true |
| 70 | version = "0.4" |
| 71 | |
| 72 | [features] |
| 73 | default = ["logging", "clap", "runtime", "which-rustfmt"] |
| 74 | logging = ["env_logger", "log"] |
| 75 | static = ["clang-sys/static"] |
| 76 | runtime = ["clang-sys/runtime"] |
| 77 | # Dynamically discover a `rustfmt` binary using the `which` crate |
| 78 | which-rustfmt = ["which"] |
| 79 | |
| 80 | # These features only exist for CI testing -- don't use them if you're not hacking |
| 81 | # on bindgen! |
| 82 | testing_only_docs = [] |
| 83 | testing_only_extra_assertions = [] |
| 84 | testing_only_libclang_9 = [] |
| 85 | testing_only_libclang_5 = [] |
| 86 | testing_only_libclang_4 = [] |
| 87 | testing_only_libclang_3_9 = [] |