Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions crates/stackable-versioned-macros/fixtures/inputs/k8s/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
)]
// ---
pub(crate) mod versioned {
// This struct is placed before the FooSpec one to ensure that the Kubernetes code generation
// works no matter the order.
pub struct Baz {
boom: Option<u16>,
}

#[versioned(k8s(group = "foo.example.org", plural = "foos", namespaced))]
pub struct FooSpec {
bar: usize,
Expand All @@ -21,7 +27,8 @@ pub(crate) mod versioned {
baz: String,
}

pub struct Baz {
boom: Option<u16>,
pub enum Boom {
Big,
Shaq,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
)]
// ---
pub(crate) mod versioned {
// This struct is placed before the FooSpec one to ensure that the Kubernetes code generation
// works no matter the order.
pub struct Baz {
boom: Option<u16>,
}

#[versioned(k8s(group = "foo.example.org", plural = "foos", namespaced))]
pub struct FooSpec {
bar: usize,
Expand All @@ -22,7 +28,8 @@ pub(crate) mod versioned {
baz: String,
}

pub struct Baz {
boom: Option<u16>,
pub enum Boom {
Big,
Shaq,
}
}
154 changes: 55 additions & 99 deletions ...-macros/fixtures/snapshots/[email protected]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading