[package]
edition = "2024"
rust-version = "1.85"
name = "enum_ext"
version = "0.5.2"
authors = ["cubicle-jockey <cubicle-jockey@users.noreply.github.com>"]
build = false
exclude = [
"target",
"Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "procedural macro that enhances enums with additional methods and conversions"
homepage = "https://github.com/cubicle-jockey/enum_ext"
readme = "README.md"
keywords = [
"enum",
"macro",
"discriminant",
"procedural",
]
categories = [
"rust-patterns",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cubicle-jockey/enum_ext"
[features]
default = []
random = ["rand"]
[lib]
name = "enum_ext"
path = "src/lib.rs"
proc-macro = true
[[example]]
name = "basic_disc"
path = "examples/basic_disc.rs"
[[example]]
name = "basic_no_disc"
path = "examples/basic_no_disc.rs"
[[example]]
name = "complex"
path = "examples/complex.rs"
[[example]]
name = "test_random_feature"
path = "examples/test_random_feature.rs"
[[test]]
name = "attr"
path = "tests/attr.rs"
[[test]]
name = "common"
path = "tests/common.rs"
[[test]]
name = "complex_enums"
path = "tests/complex_enums.rs"
[[test]]
name = "discriminant_expr"
path = "tests/discriminant_expr.rs"
[[test]]
name = "example_tests"
path = "tests/example_tests.rs"
[[test]]
name = "new_features_test"
path = "tests/new_features_test.rs"
[[test]]
name = "no_std"
path = "tests/no_std.rs"
[[test]]
name = "proc"
path = "tests/proc.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[dependencies.proc-macro2]
version = "1.0.106"
[dependencies.quote]
version = "1.0.44"
[dependencies.rand]
version = "0.10"
optional = true
[dependencies.syn]
version = "2.0.117"
features = [
"full",
"fold",
]
[dev-dependencies.trybuild]
version = "1.0"