optionable_codegen 0.15.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).
1
2
3
4
5
6
7
fn main() {
    assert!(
        !(std::env::var("CARGO_FEATURE_KUBE3").is_ok()
            && std::env::var("CARGO_FEATURE_KUBE4").is_ok()),
        "Only either kub3 or kube4 feature can be enabled at a given time"
    );
}