| 1 | lints.workspace = true |
| 2 | |
| 3 | [package] |
| 4 | authors = [ |
| 5 | "Jyun-Yan You <jyyou.tw@gmail.com>" , |
| 6 | "Emilio Cobos Álvarez <emilio@crisal.io>" , |
| 7 | "Nick Fitzgerald <fitzgen@gmail.com>" , |
| 8 | "The Servo project developers" , |
| 9 | ] |
| 10 | description = "Automatically generates Rust FFI bindings to C and C++ libraries." |
| 11 | keywords = ["bindings" , "ffi" , "code-generation" ] |
| 12 | categories = ["external-ffi-bindings" , "development-tools::ffi" ] |
| 13 | license = "BSD-3-Clause" |
| 14 | name = "bindgen" |
| 15 | readme = "../README.md" |
| 16 | repository = "https://github.com/rust-lang/rust-bindgen" |
| 17 | documentation = "https://docs.rs/bindgen" |
| 18 | homepage = "https://rust-lang.github.io/rust-bindgen/" |
| 19 | version = "0.71.1" |
| 20 | build = "build.rs" |
| 21 | rust-version.workspace = true |
| 22 | edition.workspace = true |
| 23 | |
| 24 | [lib] |
| 25 | name = "bindgen" |
| 26 | path = "lib.rs" |
| 27 | |
| 28 | [dependencies] |
| 29 | annotate-snippets = { workspace = true, optional = true } |
| 30 | bitflags.workspace = true |
| 31 | cexpr.workspace = true |
| 32 | clang-sys = { workspace = true, features = ["clang_11_0" ] } |
| 33 | clap = { workspace = true, features = ["derive" ], optional = true } |
| 34 | clap_complete = { workspace = true, optional = true } |
| 35 | itertools = { workspace = true } |
| 36 | log = { workspace = true, optional = true } |
| 37 | prettyplease = { workspace = true, optional = true, features = ["verbatim" ] } |
| 38 | proc-macro2.workspace = true |
| 39 | quote.workspace = true |
| 40 | regex = { workspace = true, features = ["std" , "unicode-perl" ] } |
| 41 | rustc-hash.workspace = true |
| 42 | shlex.workspace = true |
| 43 | syn = { workspace = true, features = ["full" , "extra-traits" , "visit-mut" ] } |
| 44 | |
| 45 | [features] |
| 46 | default = ["logging" , "prettyplease" , "runtime" ] |
| 47 | logging = ["dep:log" ] |
| 48 | static = ["clang-sys/static" ] |
| 49 | runtime = ["clang-sys/runtime" ] |
| 50 | # This feature is no longer used for anything and should be removed in bindgen 0.70 |
| 51 | which-rustfmt = [] |
| 52 | experimental = ["dep:annotate-snippets" ] |
| 53 | |
| 54 | ## The following features are for internal use and they shouldn't be used if |
| 55 | ## you're not hacking on bindgen |
| 56 | # Features used by `bindgen-cli` |
| 57 | __cli = ["dep:clap" , "dep:clap_complete" ] |
| 58 | # Features used for CI testing |
| 59 | __testing_only_extra_assertions = [] |
| 60 | __testing_only_libclang_9 = [] |
| 61 | __testing_only_libclang_16 = [] |
| 62 | |
| 63 | [package.metadata.docs.rs] |
| 64 | features = ["experimental" ] |
| 65 | |
| 66 | [package.metadata.release] |
| 67 | release = true |
| 68 | pre-release-hook = ["../node_modules/doctoc/doctoc.js" , "../CHANGELOG.md" ] |
| 69 | |
| 70 | # Add version and date to changelog file |
| 71 | [[package.metadata.release.pre-release-replacements]] |
| 72 | file = "../CHANGELOG.md" |
| 73 | search = "# Unreleased" |
| 74 | replace = "# Unreleased\n## Added\n## Changed\n## Removed\n## Fixed\n## Security\n\n# {{version}} ({{date}})" |
| 75 | |