mirror of
https://gitee.com/openharmony/third_party_rust_bindgen
synced 2024-12-02 20:47:18 +00:00
2be14a3345
* Generate extern wrappers for inlined functions If bindgen finds an inlined function and the `--generate-extern-functions` options is enabled, then: - It will generate two new source and header files with external functions that wrap the inlined functions. - Rerun `Bindings::generate` using the new header file to include these wrappers in the generated bindings. The following additional options were added: - `--extern-function-suffix=<suffix>`: Adds <suffix> to the name of each external wrapper function (`__extern` is used by default). - `--extern-functions-file-name=<name>`: Uses <name> as the file name for the header and source files (`extern` is used by default). - `--extern-function-directory=<dir>`: Creates the source and header files inside <dir> (`/tmp/bindgen` is used by default). The C code serialization is experimental and only supports a very limited set of C functions. Fixes #1090. --------- Co-authored-by: Amanjeev Sethi <aj@amanjeev.com>
24 lines
653 B
TOML
24 lines
653 B
TOML
[package]
|
|
name = "bindgen-tests"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
publish = false
|
|
|
|
[dev-dependencies]
|
|
bindgen = { path = "../bindgen", features = ["cli", "experimental"] }
|
|
diff = "0.1"
|
|
shlex = "1"
|
|
clap = { version = "4", features = ["derive"] }
|
|
tempfile = "3"
|
|
|
|
[features]
|
|
logging = ["bindgen/logging"]
|
|
static = ["bindgen/static"]
|
|
runtime = ["bindgen/runtime"]
|
|
which-rustfmt = ["bindgen/which-rustfmt"]
|
|
|
|
testing_only_docs = ["bindgen/testing_only_docs"]
|
|
testing_only_extra_assertions = ["bindgen/testing_only_extra_assertions"]
|
|
testing_only_libclang_9 = ["bindgen/testing_only_libclang_9"]
|
|
testing_only_libclang_5 = ["bindgen/testing_only_libclang_5"]
|