[package]
edition = "2024"
rust-version = "1.85"
name = "enum-path-derive"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive macro for the enum-path crate"
documentation = "https://docs.rs/enum-path-derive"
readme = "README.md"
keywords = [
"enum",
"derive",
"fromstr",
"display",
"proc-macro",
]
categories = [
"rust-patterns",
"development-tools::procedural-macro-helpers",
]
license = "MIT"
repository = "https://codeberg.org/DannyStoll/enum-path"
[lib]
name = "enum_path_derive"
path = "src/lib.rs"
proc-macro = true
[dependencies.darling]
version = "0.23.0"
[dependencies.proc-macro2]
version = "1.0.106"
[dependencies.quote]
version = "1.0.45"
[dependencies.syn]
version = "2.0.117"
features = ["extra-traits"]
[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"
multiple-crate-versions = "warn"
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