You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some letter casing, typing, formatting, and grammar errors are fixed.
Links added to docs.rs in some text referring to documentation there,
as well as to other external resources.
For inclusivity, the tutorial's sanity test is renamed to a smoke test.
method or the `--wrap-static-fns` flag. That generates a C source file that can
60
+
be compiled against the input headers to produce Rust bindings for `static` and
61
+
`static inline` functions. See [How to handle `static inline` functions](https://github.com/rust-lang/rust-bindgen/discussions/2405)
62
62
for further information.
63
63
64
64
### Does `bindgen` support the C++ Standard Template Library (STL)?
@@ -81,8 +81,8 @@ possible that bindgen will generate padding fields named `__bindgen_padding_N`.
81
81
As these fields might be present when compiling for one architecture but not
82
82
for an other, you should not initialize these fields manually when initializing
83
83
the struct. Instead, use the `Default` trait. You can either enable this when
84
-
constructing the `Builder` using the `derive_default`method, or you can
85
-
implement this per struct using:
84
+
constructing the `Builder` using the [`derive_default`](https://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.derive_default)
85
+
method, or you can implement this per struct using:
86
86
87
87
```rust,ignore
88
88
impl Default for SRC_DATA {
@@ -107,7 +107,7 @@ be automatically initialized by `..Default::default()`.
107
107
108
108
### How to generate bindings for a custom target?
109
109
110
-
To generate bindings for a custom target you only need to pass the `--target`
110
+
To generate bindings for a custom target you only need to pass the [`--target`](https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-target)
111
111
argument to `libclang`. For example, if you want to generate bindings for the
112
112
`armv7a-none-eabi` target using the command line, you need to invoke `bindgen`
0 commit comments