mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2024-12-04 05:22:20 +00:00
9b6d0e84b4
For references, libclang returns the size and align of the pointee. This actually matches how C++'s sizeof() and alignof() works, for some reason, though in this case we really want to know the pointer's layout. Anyhow, we know the target pointer size, so manually handle this case. Filed https://bugs.llvm.org/show_bug.cgi?id=40975 for this.
83 lines
1.9 KiB
TOML
83 lines
1.9 KiB
TOML
[package]
|
|
authors = [
|
|
"Jyun-Yan You <jyyou.tw@gmail.com>",
|
|
"Emilio Cobos Álvarez <emilio@crisal.io>",
|
|
"Nick Fitzgerald <fitzgen@gmail.com>",
|
|
"The Servo project developers",
|
|
]
|
|
description = "Automatically generates Rust FFI bindings to C and C++ libraries."
|
|
keywords = ["bindings", "ffi", "code-generation"]
|
|
categories = ["external-ffi-bindings", "development-tools::ffi"]
|
|
license = "BSD-3-Clause"
|
|
name = "bindgen"
|
|
readme = "README.md"
|
|
repository = "https://github.com/rust-lang/rust-bindgen"
|
|
documentation = "https://docs.rs/bindgen"
|
|
homepage = "https://rust-lang.github.io/rust-bindgen/"
|
|
version = "0.48.1"
|
|
build = "build.rs"
|
|
|
|
include = [
|
|
"LICENSE",
|
|
"README.md",
|
|
"Cargo.toml",
|
|
"build.rs",
|
|
"src/*.rs",
|
|
"src/**/*.rs",
|
|
]
|
|
|
|
[badges]
|
|
travis-ci = { repository = "rust-lang/rust-bindgen" }
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "bindgen"
|
|
path = "src/main.rs"
|
|
doc = false
|
|
|
|
[dev-dependencies]
|
|
diff = "0.1"
|
|
clap = "2"
|
|
shlex = "0.1"
|
|
|
|
[dependencies]
|
|
bitflags = "1.0.3"
|
|
cexpr = "0.3.3"
|
|
cfg-if = "0.1.0"
|
|
# This kinda sucks: https://github.com/rust-lang/cargo/issues/1982
|
|
clap = "2"
|
|
clang-sys = { version = "0.26.4", features = ["runtime", "clang_6_0"] }
|
|
lazy_static = "1"
|
|
peeking_take_while = "0.1.2"
|
|
quote = { version = "0.6", default-features = false }
|
|
regex = "1.0"
|
|
which = ">=1.0, <3.0"
|
|
hashbrown = "0.1"
|
|
# New validation in 0.3.6 breaks bindgen-integration:
|
|
# https://github.com/alexcrichton/proc-macro2/commit/489c642.
|
|
proc-macro2 = { version = "0.4", default-features = false }
|
|
|
|
[dependencies.env_logger]
|
|
optional = true
|
|
version = "0.6"
|
|
|
|
[dependencies.log]
|
|
optional = true
|
|
version = "0.4"
|
|
|
|
[features]
|
|
default = ["logging"]
|
|
logging = ["env_logger", "log"]
|
|
static = []
|
|
|
|
# These features only exist for CI testing -- don't use them if you're not hacking
|
|
# on bindgen!
|
|
testing_only_docs = []
|
|
testing_only_extra_assertions = []
|
|
testing_only_libclang_5 = []
|
|
testing_only_libclang_4 = []
|
|
testing_only_libclang_3_9 = []
|
|
testing_only_libclang_3_8 = []
|