defaulted 0.1.3

Trait and derive macro for testing whether a value equals its default state, with per-field customization and optional serde integration
Documentation
# 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.85"
name = "defaulted"
version = "0.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Trait and derive macro for testing whether a value equals its default state, with per-field customization and optional serde integration"
readme = "README.md"
keywords = [
    "default",
    "derive",
    "macro",
    "serde",
    "no-std",
]
categories = [
    "rust-patterns",
    "no-std",
    "encoding",
]
license = "MIT"
repository = "https://codeberg.org/DannyStoll/defaulted"
resolver = "2"

[features]
alloc = []
bytes = ["dep:bytes"]
default = [
    "std",
    "derive",
]
derive = ["dep:defaulted_derive"]
indexmap = ["dep:indexmap"]
serde = [
    "dep:serde",
    "defaulted_derive?/serde",
]
serde-json = ["dep:serde_json"]
serde-yaml = ["dep:serde_yaml"]
smallvec = ["dep:smallvec"]
std = ["alloc"]

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

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

[dependencies.bytes]
version = "1"
optional = true

[dependencies.defaulted_derive]
version = "0.1.1"
optional = true

[dependencies.indexmap]
version = "2.13"
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.smallvec]
version = "1"
optional = true

[lints.clippy]
allow-attributes = "warn"
allow-attributes-without-reason = "warn"
cargo-common-metadata = "warn"
cast-possible-wrap = "allow"
cast-precision-loss = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
clone-on-ref-ptr = "warn"
cognitive-complexity = "allow"
dbg-macro = "warn"
decimal-literal-representation = "warn"
default-union-representation = "deny"
doc-paragraphs-missing-punctuation = "warn"
doc_markdown = "allow"
empty-structs-with-brackets = "warn"
enum-glob-use = "allow"
filetype-is-file = "warn"
if-then-some-else-none = "warn"
infinite-loop = "deny"
missing-errors-doc = "allow"
missing-panics-doc = "allow"
module-name-repetitions = "allow"
mutex-atomic = "warn"
option-if-let-else = "allow"
pathbuf-init-then-push = "warn"
rc-buffer = "warn"
rc-mutex = "warn"
redundant-test-prefix = "warn"
return-and-then = "warn"
same-name-method = "warn"
str-to-string = "warn"
string-lit-chars-any = "warn"
unused-trait-names = "warn"
unwrap-used = "deny"
verbose-file-reads = "warn"
wildcard-imports = "allow"

[lints.clippy.all]
level = "allow"
priority = -3

[lints.clippy.complexity]
level = "warn"
priority = -2

[lints.clippy.correctness]
level = "deny"
priority = -2

[lints.clippy.nursery]
level = "warn"
priority = -2

[lints.clippy.pedantic]
level = "warn"
priority = -2

[lints.clippy.perf]
level = "deny"
priority = -2

[lints.clippy.style]
level = "warn"
priority = -2

[lints.clippy.todo]
level = "warn"
priority = -1