diff --git a/vk_generator/Cargo.toml b/vk_generator/Cargo.toml index ea496df..4de34d0 100644 --- a/vk_generator/Cargo.toml +++ b/vk_generator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vk_generator" -version = "0.1.3" +version = "0.2.0" authors = ["Osspial "] description = "Generate Rust bindings to the Vulkan API" diff --git a/vk_generator/src/generator/mod.rs b/vk_generator/src/generator/mod.rs index a110596..9866408 100644 --- a/vk_generator/src/generator/mod.rs +++ b/vk_generator/src/generator/mod.rs @@ -135,6 +135,10 @@ impl<'a> GenConfig<'a> { self } + /// Whether or not to use the unstable `union` keyword to create native untagged unions. + /// Currently relies on the `untagged_unions` feature. + /// + /// Defaults to `false`. pub fn use_native_unions(mut self, use_native_unions: bool) -> GenConfig<'a> { self.use_native_unions = use_native_unions; self