| 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.70.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.70.0" |
| 22 | |
| 23 | [lib] |
| 24 | name = "bindgen" |
| 25 | path = "lib.rs" |
| 26 | |
| 27 | [dependencies] |
| 28 | annotate-snippets = { version = "0.9.1" , features = ["color" ], optional = true } |
| 29 | bitflags = "2.2.1" |
| 30 | cexpr = "0.6" |
| 31 | clang-sys = { version = "1" , features = ["clang_6_0" ] } |
| 32 | itertools = { version = ">=0.10,<0.14" , default-features = false } |
| 33 | log = { version = "0.4" , optional = true } |
| 34 | prettyplease = { version = "0.2.7" , optional = true, features = ["verbatim" ] } |
| 35 | proc-macro2 = { version = "1" , default-features = false } |
| 36 | quote = { version = "1" , default-features = false } |
| 37 | regex = { version = "1.5.3" , default-features = false, features = ["std" , "unicode-perl" ] } |
| 38 | rustc-hash = "1.0.1" |
| 39 | shlex = "1" |
| 40 | syn = { version = "2.0" , features = ["full" , "extra-traits" , "visit-mut" ] } |
| 41 | |
| 42 | [features] |
| 43 | default = ["logging" , "prettyplease" , "runtime" ] |
| 44 | logging = ["dep:log" ] |
| 45 | static = ["clang-sys/static" ] |
| 46 | runtime = ["clang-sys/runtime" ] |
| 47 | # This feature is no longer used for anything and should be removed in bindgen 0.70 |
| 48 | which-rustfmt = [] |
| 49 | experimental = ["dep:annotate-snippets" ] |
| 50 | |
| 51 | ## The following features are for internal use and they shouldn't be used if |
| 52 | ## you're not hacking on bindgen |
| 53 | # Features used by `bindgen-cli` |
| 54 | __cli = [] |
| 55 | # Features used for CI testing |
| 56 | __testing_only_extra_assertions = [] |
| 57 | __testing_only_libclang_9 = [] |
| 58 | __testing_only_libclang_16 = [] |
| 59 | |
| 60 | [package.metadata.docs.rs] |
| 61 | features = ["experimental" ] |
| 62 | |
| 63 | [package.metadata.release] |
| 64 | release = true |
| 65 | pre-release-hook = ["../node_modules/doctoc/doctoc.js" , "../CHANGELOG.md" ] |
| 66 | |
| 67 | # Add version and date to changelog file |
| 68 | [[package.metadata.release.pre-release-replacements]] |
| 69 | file = "../CHANGELOG.md" |
| 70 | search = "# Unreleased" |
| 71 | replace = "# Unreleased\n## Added\n## Changed\n## Removed\n## Fixed\n## Security\n\n# {{version}} ({{date}})" |
| 72 | |