optionable_codegen 0.3.0

proc_macro2 functions for the derive macro and codegen implementations in the `optionable_derive` crate to derive nested structs/enums with all subfields being optional (e.g. for patches or Kubernetes server side apply).
Documentation
[[bin]]
name = "codegen"
path = "src/bin/codegen.rs"

[dependencies.clap]
features = ["derive"]
optional = true
version = "4.5.48"

[dependencies.darling]
default-features = false
version = "0.21.3"

[dependencies.itertools]
version = "0.14.0"

[dependencies.prettyplease]
optional = true
version = "0.2.37"

[dependencies.proc-macro2]
version = "1.0.101"

[dependencies.quote]
version = "1.0.40"

[dependencies.syn]
default-features = false
features = ["proc-macro"]
version = "2.0.106"

[dev-dependencies.assert_cmd]
version = "2.0.17"

[dev-dependencies.tempfile]
version = "3.23.0"

[features]
codegen = ["dep:clap", "dep:prettyplease"]
default = []

[lib]
name = "optionable_codegen"
path = "src/lib.rs"

[lints.clippy]
pedantic = "warn"

[package]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
description = "proc_macro2 functions for the derive macro and codegen implementations in the `optionable_derive` crate to derive nested structs/enums with all subfields being optional (e.g. for patches or Kubernetes server side apply)."
edition = "2024"
license = "MIT OR Apache-2.0"
name = "optionable_codegen"
readme = "README.md"
repository = "https://github.com/ngergs/optionable"
version = "0.3.0"

[[test]]
name = "codegen"
path = "tests/codegen.rs"