| 1 |
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
| 2 |
# |
| 3 |
# When uploading crates to the registry Cargo will automatically |
| 4 |
# "normalize" Cargo.toml files for maximal compatibility |
| 5 |
# with all versions of Cargo and also rewrite `path` dependencies |
| 6 |
# to registry (e.g., crates.io) dependencies. |
| 7 |
# |
| 8 |
# If you are reading this file be aware that the original Cargo.toml |
| 9 |
# will likely look very different (and much more reasonable). |
| 10 |
# See Cargo.toml.orig for the original contents. |
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.70.0" |
| 15 |
name = "bindgen" |
| 16 |
version = "0.72.1" |
| 17 |
authors = [ |
| 18 |
"Jyun-Yan You <[email protected]>", |
| 19 |
"Emilio Cobos Álvarez <[email protected]>", |
| 20 |
"Nick Fitzgerald <[email protected]>", |
| 21 |
"The Servo project developers", |
| 22 |
] |
| 23 |
build = "build.rs" |
| 24 |
autolib = false |
| 25 |
autobins = false |
| 26 |
autoexamples = false |
| 27 |
autotests = false |
| 28 |
autobenches = false |
| 29 |
description = "Automatically generates Rust FFI bindings to C and C++ libraries." |
| 30 |
homepage = "https://rust-lang.github.io/rust-bindgen/" |
| 31 |
documentation = "https://docs.rs/bindgen" |
| 32 |
readme = "README.md" |
| 33 |
keywords = [ |
| 34 |
"bindings", |
| 35 |
"ffi", |
| 36 |
"code-generation", |
| 37 |
] |
| 38 |
categories = [ |
| 39 |
"external-ffi-bindings", |
| 40 |
"development-tools::ffi", |
| 41 |
] |
| 42 |
license = "BSD-3-Clause" |
| 43 |
repository = "https://github.com/rust-lang/rust-bindgen" |
| 44 |
|
| 45 |
[package.metadata.docs.rs] |
| 46 |
features = ["experimental"] |
| 47 |
|
| 48 |
[package.metadata.release] |
| 49 |
pre-release-hook = [ |
| 50 |
"../node_modules/doctoc/doctoc.js", |
| 51 |
"../CHANGELOG.md", |
| 52 |
] |
| 53 |
release = true |
| 54 |
|
| 55 |
[[package.metadata.release.pre-release-replacements]] |
| 56 |
file = "../CHANGELOG.md" |
| 57 |
replace = """ |
| 58 |
# Unreleased |
| 59 |
## Added |
| 60 |
## Changed |
| 61 |
## Removed |
| 62 |
## Fixed |
| 63 |
## Security |
| 64 |
|
| 65 |
# {{version}} ({{date}})""" |
| 66 |
search = "# Unreleased" |
| 67 |
|
| 68 |
[features] |
| 69 |
__cli = [ |
| 70 |
"dep:clap", |
| 71 |
"dep:clap_complete", |
| 72 |
] |
| 73 |
__testing_only_extra_assertions = [] |
| 74 |
__testing_only_libclang_16 = [] |
| 75 |
__testing_only_libclang_9 = [] |
| 76 |
default = [ |
| 77 |
"logging", |
| 78 |
"prettyplease", |
| 79 |
"runtime", |
| 80 |
] |
| 81 |
experimental = ["dep:annotate-snippets"] |
| 82 |
logging = ["dep:log"] |
| 83 |
runtime = ["clang-sys/runtime"] |
| 84 |
static = ["clang-sys/static"] |
| 85 |
|
| 86 |
[lib] |
| 87 |
name = "bindgen" |
| 88 |
path = "lib.rs" |
| 89 |
|
| 90 |
[dependencies.annotate-snippets] |
| 91 |
version = "0.11.4" |
| 92 |
optional = true |
| 93 |
|
| 94 |
[dependencies.bitflags] |
| 95 |
version = "2.2.1" |
| 96 |
|
| 97 |
[dependencies.cexpr] |
| 98 |
version = "0.6" |
| 99 |
|
| 100 |
[dependencies.clang-sys] |
| 101 |
version = "1" |
| 102 |
features = ["clang_11_0"] |
| 103 |
|
| 104 |
[dependencies.clap] |
| 105 |
version = "4" |
| 106 |
features = ["derive"] |
| 107 |
optional = true |
| 108 |
|
| 109 |
[dependencies.clap_complete] |
| 110 |
version = "4" |
| 111 |
optional = true |
| 112 |
|
| 113 |
[dependencies.itertools] |
| 114 |
version = ">=0.10,<0.15" |
| 115 |
default-features = false |
| 116 |
|
| 117 |
[dependencies.log] |
| 118 |
version = "0.4" |
| 119 |
optional = true |
| 120 |
|
| 121 |
[dependencies.prettyplease] |
| 122 |
version = "0.2.7" |
| 123 |
features = ["verbatim"] |
| 124 |
optional = true |
| 125 |
|
| 126 |
[dependencies.proc-macro2] |
| 127 |
version = "1.0.80" |
| 128 |
|
| 129 |
[dependencies.quote] |
| 130 |
version = "1" |
| 131 |
default-features = false |
| 132 |
|
| 133 |
[dependencies.regex] |
| 134 |
version = "1.5.3" |
| 135 |
features = [ |
| 136 |
"std", |
| 137 |
"unicode-perl", |
| 138 |
] |
| 139 |
default-features = false |
| 140 |
|
| 141 |
[dependencies.rustc-hash] |
| 142 |
version = "2" |
| 143 |
|
| 144 |
[dependencies.shlex] |
| 145 |
version = "1" |
| 146 |
|
| 147 |
[dependencies.syn] |
| 148 |
version = "2.0" |
| 149 |
features = [ |
| 150 |
"full", |
| 151 |
"extra-traits", |
| 152 |
"visit-mut", |
| 153 |
] |
| 154 |
|
| 155 |
[lints.clippy] |
| 156 |
cast_possible_truncation = "allow" |
| 157 |
cast_possible_wrap = "allow" |
| 158 |
cast_precision_loss = "allow" |
| 159 |
cast_sign_loss = "allow" |
| 160 |
default_trait_access = "allow" |
| 161 |
enum_glob_use = "allow" |
| 162 |
ignored_unit_patterns = "allow" |
| 163 |
implicit_hasher = "allow" |
| 164 |
items_after_statements = "allow" |
| 165 |
match_same_arms = "allow" |
| 166 |
maybe_infinite_iter = "allow" |
| 167 |
missing_errors_doc = "allow" |
| 168 |
missing_panics_doc = "allow" |
| 169 |
module_name_repetitions = "allow" |
| 170 |
must_use_candidate = "allow" |
| 171 |
redundant_closure_for_method_calls = "allow" |
| 172 |
return_self_not_must_use = "allow" |
| 173 |
similar_names = "allow" |
| 174 |
struct_excessive_bools = "allow" |
| 175 |
struct_field_names = "allow" |
| 176 |
too_many_lines = "allow" |
| 177 |
trivially_copy_pass_by_ref = "allow" |
| 178 |
unnecessary_wraps = "allow" |
| 179 |
unreadable_literal = "allow" |
| 180 |
unused_self = "allow" |
| 181 |
used_underscore_binding = "allow" |
| 182 |
wildcard_imports = "allow" |
| 183 |
|
| 184 |
[lints.clippy.pedantic] |
| 185 |
level = "warn" |
| 186 |
priority = -1 |
| 187 |
|
| 188 |
[lints.rust] |
| 189 |
unused_qualifications = "warn" |