[package]
edition = "2024"
rust-version = "1.85"
name = "enum-strings"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Derive a const fn per named string on a unit enum, every variant required to supply every string"
documentation = "https://docs.rs/enum-strings"
readme = "README.md"
keywords = [
"enum",
"derive",
"const",
"static",
"macro",
]
categories = [
"rust-patterns",
"development-tools::procedural-macro-helpers",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/apekros/enum-strings"
[lib]
name = "enum_strings"
path = "src/lib.rs"
proc-macro = true
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.trybuild]
version = "1"
[lints.clippy]
complexity = "warn"
expect_used = "warn"
missing_docs_in_private_items = "warn"
nursery = "warn"
pedantic = "warn"
perf = "warn"
suspicious = "warn"
unwrap_used = "warn"
[lints.clippy.allow_attributes]
level = "deny"
priority = 1
[lints.rust]
missing_docs = "warn"