# 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"
name = "optionable"
version = "0.2.0"
build = false
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]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
features = [
    "derive",
    "std",
    "serde_json",
    "serde_json/std",
]
all-features = false

[features]
alloc = []
chrono = ["dep:chrono"]
default = [
    "derive",
    "std",
]
derive = ["dep:optionable_derive"]
serde_json = ["dep:serde_json"]
std = []

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

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

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

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

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

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

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

[lints.clippy]
pedantic = "warn"
