variants 0.0.1

Useful interfaces and macros for working with enums in Rust.
Documentation
[[bench]]
harness = false
name = "default"
path = "benches/default.rs"

[dependencies.anyhow]
default-features = false
optional = true
version = "1"

[dependencies.thiserror]
default-features = false
version = "2"

[dependencies.variants-derive]
optional = true
version = "0.0.1"

[dependencies.variants-macros]
optional = true
version = "0.0.1"

[dev-dependencies.criterion]
features = ["plotters", "plotters"]
version = "0.7"

[[example]]
name = "constructors"
path = "examples/constructors.rs"
required-features = ["derive", "std"]

[features]
alloc = ["variants-derive?/alloc", "variants-macros?/alloc"]
anyhow = ["dep:anyhow"]
default = ["derive", "std"]
derive = ["dep:variants-derive"]
full = ["default"]
macros = ["dep:variants-macros"]
nightly = ["variants-derive?/nightly", "variants-macros?/nightly"]
std = ["alloc", "anyhow?/std", "thiserror/std", "variants-derive?/std", "variants-macros?/std"]

[lib]
bench = true
crate-type = ["cdylib", "rlib"]
doctest = false
name = "variants"
path = "src/lib.rs"
test = true

[package]
authors = ["FL03 <joe@pzzld.org> (https://github.com/FL03)"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = "build.rs"
categories = []
description = "Useful interfaces and macros for working with enums in Rust."
edition = "2024"
homepage = "https://github.com/FL03/variants/wiki"
keywords = ["derive", "enum", "macro", "rust", "variants"]
license = "Apache-2.0"
name = "variants"
readme = "README.md"
repository = "https://github.com/FL03/variants.git"
rust-version = "1.85.0"
version = "0.0.1"

[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}}"

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