diff options
Diffstat (limited to 'src/rust')
-rw-r--r-- | src/rust/unit-wasm-sys/build.rs | 3 | ||||
-rw-r--r-- | src/rust/unit-wasm-sys/macros.rs | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/rust/unit-wasm-sys/build.rs b/src/rust/unit-wasm-sys/build.rs index 507099b..1f41afa 100644 --- a/src/rust/unit-wasm-sys/build.rs +++ b/src/rust/unit-wasm-sys/build.rs @@ -36,6 +36,9 @@ fn generate_bindings() { .allowlist_function("^luw_.*") .allowlist_var("^luw_.*") .allowlist_type("^luw_.*") + .default_enum_style(bindgen::EnumVariation::Rust { + non_exhaustive: false, + }) .generate() .expect("Unable to generate bindings"); diff --git a/src/rust/unit-wasm-sys/macros.rs b/src/rust/unit-wasm-sys/macros.rs index 5914ad9..080d702 100644 --- a/src/rust/unit-wasm-sys/macros.rs +++ b/src/rust/unit-wasm-sys/macros.rs @@ -14,7 +14,7 @@ pub const LUW_VERSION_NUMBER: i32 = (LUW_VERSION_MINOR << 16) | (LUW_VERSION_PATCH << 8); -pub const LUW_SRB_NONE: u32 = luw_srb_flags_t_LUW_SRB_NONE; -pub const LUW_SRB_APPEND: u32 = luw_srb_flags_t_LUW_SRB_APPEND; -pub const LUW_SRB_ALLOC: u32 = luw_srb_flags_t_LUW_SRB_ALLOC; -pub const LUW_SRB_FULL_SIZE: u32 = luw_srb_flags_t_LUW_SRB_FLAGS_ALL; +pub const LUW_SRB_NONE: u32 = luw_srb_flags_t::LUW_SRB_NONE as u32; +pub const LUW_SRB_APPEND: u32 = luw_srb_flags_t::LUW_SRB_APPEND as u32; +pub const LUW_SRB_ALLOC: u32 = luw_srb_flags_t::LUW_SRB_ALLOC as u32; +pub const LUW_SRB_FULL_SIZE: u32 = luw_srb_flags_t::LUW_SRB_FLAGS_ALL as u32; |