[package]
edition = "2024"
rust-version = "1.85.0"
name = "variants-derive"
version = "0.0.1"
authors = ["FL03 <joe@pzzld.org> (https://github.com/FL03)"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "derive macros enabling the variants crate"
homepage = "https://github.com/FL03/variants/wiki"
readme = "README.md"
keywords = [
"derive",
"enum",
"macro",
"rust",
"variants",
]
categories = []
license = "Apache-2.0"
repository = "https://github.com/FL03/variants.git"
[package.metadata.docs.rs]
all-features = false
features = ["default"]
rustc-args = [
"--cfg",
"docsrs",
]
version = "v{{version}}"
[package.metadata.release]
no-dev-version = true
tag-name = "{{version}}"
[features]
alloc = []
default = ["std"]
nightly = ["proc-macro2/nightly"]
std = ["alloc"]
[lib]
name = "variants_derive"
path = "src/lib.rs"
test = false
doctest = false
bench = false
doc = true
proc-macro = true
[[test]]
name = "variants"
path = "tests/variants.rs"
[dependencies.proc-macro2]
version = "1"
[dependencies.quote]
version = "1"
[dependencies.syn]
version = "2"
features = ["full"]