# 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_derive"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro for the IsDefault trait from the defaulted crate"
readme = false
license = "MIT"
repository = "https://codeberg.org/DannyStoll/defaulted"
resolver = "2"

[features]
serde = []

[lib]
name = "defaulted_derive"
path = "src/lib.rs"
proc-macro = true

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

[dependencies.quote]
version = "1.0.45"

[dependencies.syn]
version = "2.0.117"
features = ["full"]

[lints.clippy]
cast-possible-wrap = "allow"
cast-precision-loss = "allow"
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cognitive-complexity = "allow"
doc_markdown = "allow"
enum-glob-use = "allow"
missing-errors-doc = "allow"
missing-panics-doc = "allow"
module-name-repetitions = "allow"
option-if-let-else = "allow"
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
