# 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"
version = "0.6.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro (and associated marker trait) 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]
features = [
    "alloc",
    "derive",
    "kube",
    "std",
    "serde_json",
    "serde_json/std",
    "k8s-openapi/v1_34",
]
all-features = false

[features]
alloc = []
chrono = ["dep:chrono"]
default = [
    "derive",
    "std",
]
derive = ["dep:optionable_derive"]
k8s_openapi_convert = []
k8s_openapi_v1_30 = [
    "dep:k8s-openapi",
    "dep:serde",
    "optionable_derive/k8s_openapi",
    "k8s-openapi/v1_30",
    "serde/derive",
    "serde/std",
    "serde_json",
    "std",
    "chrono",
]
k8s_openapi_v1_31 = [
    "dep:k8s-openapi",
    "dep:serde",
    "optionable_derive/k8s_openapi",
    "k8s-openapi/v1_31",
    "serde/derive",
    "serde/std",
    "serde_json",
    "std",
    "chrono",
]
k8s_openapi_v1_32 = [
    "dep:k8s-openapi",
    "dep:serde",
    "optionable_derive/k8s_openapi",
    "k8s-openapi/v1_32",
    "serde/derive",
    "serde/std",
    "serde_json",
    "std",
    "chrono",
]
k8s_openapi_v1_33 = [
    "dep:k8s-openapi",
    "dep:serde",
    "optionable_derive/k8s_openapi",
    "k8s-openapi/v1_33",
    "serde/derive",
    "serde/std",
    "serde_json",
    "std",
    "chrono",
]
k8s_openapi_v1_34 = [
    "dep:k8s-openapi",
    "dep:serde",
    "optionable_derive/k8s_openapi",
    "k8s-openapi/v1_34",
    "serde/derive",
    "serde/std",
    "serde_json",
    "std",
    "chrono",
]
kube = [
    "dep:kube",
    "dep:serde",
    "serde_json",
    "optionable_derive/kube",
]
serde_json = ["dep:serde_json"]
std = []

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

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

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

[dependencies.chrono]
version = "0.4.42"
optional = true
default-features = false

[dependencies.k8s-openapi]
version = "0.26.0"
optional = true
default-features = false

[dependencies.kube]
version = "2.0.1"
optional = true
default-features = false

[dependencies.optionable_derive]
version = "0.5.0"
optional = true

[dependencies.serde]
version = "1.0.228"
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0.145"
optional = true
default-features = false

[dev-dependencies.serde]
version = "1.0.228"
features = ["derive"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0.145"
features = ["alloc"]
default-features = false

[lints.clippy]
pedantic = "warn"
