Skip to content

Commit

Permalink
feat(stackable-versioned): Add K8s specific features (#857)
Browse files Browse the repository at this point in the history
* chore: Add changelog entry

* chore: Update PR link in changelog

* chore: Fix markdownlint error

* feat: Add support for CustomResource derive

* chore: Move CRD test case to run via trybuild

* chore(ci): Add cargo-udeps ignore

* fix(docs): Repair doc comment reference

* chore: Apply suggestions

Co-authored-by: Nick <[email protected]>

* fix(docs): Use struct@ to fix rustdoc errors

* chore: Bump syn to 2.0.77

* test: Move K8s specific tests into own folder

* test: Adjust test modules, add negative K8s specific test

* chore: Add comment to cargo-udeps ignore items

* Update crates/stackable-versioned-macros/Cargo.toml

Co-authored-by: Nick <[email protected]>

* chore: Remove trailing whitespace

---------

Co-authored-by: Nick <[email protected]>
  • Loading branch information
Techassi and NickLarsenNZ authored Sep 11, 2024
1 parent 04f3b11 commit b262bde
Show file tree
Hide file tree
Showing 28 changed files with 505 additions and 191 deletions.
74 changes: 40 additions & 34 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ signature = "2.2.0"
snafu = "0.8.4"
stackable-operator-derive = { path = "stackable-operator-derive" }
strum = { version = "0.26.3", features = ["derive"] }
syn = "2.0.72"
syn = "2.0.77"
tempfile = "3.11.0"
time = { version = "0.3.36" }
tokio = { version = "1.39.2", features = ["macros", "rt-multi-thread", "fs"] }
Expand Down
17 changes: 17 additions & 0 deletions crates/stackable-versioned-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,37 @@ license.workspace = true
edition.workspace = true
repository.workspace = true

# cargo-udeps throws an error that these dependencies are unused. They are,
# however, used in K8s specific test cases. This is a false-positive and an
# apparent limitation of cargo-udeps. These entries can be removed once
# cargo-udeps supports detecting usage of such dependencies.
[package.metadata.cargo-udeps.ignore]
development = ["schemars", "serde_yaml"]

[lib]
proc-macro = true

[features]
full = ["k8s"]
k8s = ["dep:kube", "dep:k8s-openapi"]

[dependencies]
k8s-version = { path = "../k8s-version", features = ["darling"] }

convert_case.workspace = true
darling.workspace = true
itertools.workspace = true
k8s-openapi = { workspace = true, optional = true }
kube = { workspace = true, optional = true }
proc-macro2.workspace = true
strum.workspace = true
syn.workspace = true
quote.workspace = true

[dev-dependencies]
rstest.workspace = true
schemars.workspace = true
serde.workspace = true
serde_json.workspace = true
serde_yaml.workspace = true
trybuild.workspace = true
Loading

0 comments on commit b262bde

Please sign in to comment.