# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88.0"
name = "optionable_codegen"
version = "0.14.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = 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)."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ngergs/optionable"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
all-features = true

[features]
default = []
k8s_openapi = []
kube = []

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

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

[dependencies.itertools]
version = "0.14.0"

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

[dependencies.quote]
version = "1.0.45"

[dependencies.syn]
version = "2.0.117"
features = [
    "proc-macro",
    "derive",
    "visit",
]
default-features = false

[dev-dependencies.k8s-openapi-codegen-common]
version = "0.27.1"

[lints.clippy]
pedantic = "warn"
