Skip to content

Commit

Permalink
Documented untagged unions, bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Osspial committed Dec 4, 2016
1 parent b4f505f commit 663c492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vk_generator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vk_generator"
version = "0.1.3"
version = "0.2.0"
authors = ["Osspial <[email protected]>"]

description = "Generate Rust bindings to the Vulkan API"
Expand Down
4 changes: 4 additions & 0 deletions vk_generator/src/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 663c492

Please sign in to comment.