Skip to content

Commit

Permalink
Update darling from 0.13 to 0.14 (#883)
Browse files Browse the repository at this point in the history
replaces #881

Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux authored Apr 18, 2022
1 parent 4309c66 commit 5f0ff7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kube-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ proc-macro2 = "1.0.29"
quote = "1.0.10"
syn = { version = "1.0.80", features = ["extra-traits"] }
serde_json = "1.0.68"
darling = "0.13.0"
darling = "0.14.0"

[lib]
proc-macro = true
Expand Down
7 changes: 1 addition & 6 deletions kube-derive/src/custom_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,26 @@ struct KubeAttrs {
group: String,
version: String,
kind: String,
#[darling(default, rename = "struct")]
#[darling(rename = "struct")]
kind_struct: Option<String>,
/// lowercase plural of kind (inferred if omitted)
#[darling(default)]
plural: Option<String>,
/// singular defaults to lowercased kind
#[darling(default)]
singular: Option<String>,
#[darling(default)]
namespaced: bool,
#[darling(default = "default_apiext")]
apiextensions: String,
#[darling(multiple, rename = "derive")]
derives: Vec<String>,
#[darling(default)]
schema: Option<SchemaMode>,
#[darling(default)]
status: Option<String>,
#[darling(multiple, rename = "category")]
categories: Vec<String>,
#[darling(multiple, rename = "shortname")]
shortnames: Vec<String>,
#[darling(multiple, rename = "printcolumn")]
printcolums: Vec<String>,
#[darling(default)]
scale: Option<String>,
#[darling(default)]
crates: Crates,
Expand Down

0 comments on commit 5f0ff7d

Please sign in to comment.