Lines Matching +full:rust +full:- +full:version
3 **NOTE**: Rust 1.19 stabilized the `union` type (see Rust issue [#32836](https://github.com/rust-la…
5 You can pass the `--rust-target` option to tell `bindgen` to target a specific version of Rust.
6 By default, `bindgen` will target the latest stable Rust.
7 The `--rust-target` option accepts a specific stable version (such as "1.0" or "1.19") or "nightly".
9 **NOTE**: The `--unstable-rust` option is deprecated; use `--rust-target nightly` instead.
38 …://docs.rs/bindgen/latest/bindgen/struct.Builder.html#method.rust_target) <!-- Update when live -->
43 * `--rust-target`
44 * `--with-derive-default`
48 Bindgen can emit one of two Rust types that correspond to C unions:
50 * Rust's `union` builtin (only available in Rust >= 1.19, including nightly)
51 * Bindgen's `BindgenUnion` (available for all Rust targets)
53 Bindgen uses the following logic to determine which Rust union type to emit:
55 * If the Rust target is >= 1.19 (including nightly) AND each field of the union can derive `Copy`, …
65 ```rust,ignore
72 // If `--with-derive-default` option is not used, the following may be used
80 b: -1,
85 println!("{:?}", z.alfa); // alpha_t { a: 1, b: -1 }
93 …the target Rust version does not support the new `union` type or there is a field that cannot deri…
98 ```rust,ignore
109 // b: -1,
117 b: -1,
120 println!("{:?}", x.alfa.as_ref()); // alpha_t { a: 1, b: -1 }
129 --> src/main.rs:44:15
134 46 | | b: -1,