[package]
edition = "2021"
name = "subenum"
version = "1.2.0"
authors = ["Paho Lurie-Gregg <paho@paholg.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A proc-macro to create subsets of enums, that can be converted
to and from."""
documentation = "https://docs.rs/subenum"
readme = "README.md"
keywords = [
"enum",
"sub-enum",
"no-std",
]
categories = ["development-tools::procedural-macro-helpers"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/paholg/subenum"
[features]
default = [
"std",
"error_trait",
"strum/std",
]
error_trait = []
std = []
[lib]
name = "subenum"
path = "src/lib.rs"
proc-macro = true
[[example]]
name = "require_docs"
path = "examples/require_docs.rs"
[[test]]
name = "associated_types"
path = "tests/associated_types.rs"
[[test]]
name = "complex_path_and_qself"
path = "tests/complex_path_and_qself.rs"
[[test]]
name = "const_generics"
path = "tests/const_generics.rs"
[[test]]
name = "it"
path = "tests/it.rs"
[[test]]
name = "lifetimes"
path = "tests/lifetimes.rs"
[[test]]
name = "mixed_generics"
path = "tests/mixed_generics.rs"
[[test]]
name = "no_std"
path = "tests/no_std.rs"
[[test]]
name = "parent_specific"
path = "tests/parent_specific.rs"
[[test]]
name = "subenum_specific"
path = "tests/subenum_specific.rs"
[dependencies.heck]
version = "0.5.0"
[dependencies.proc-macro2]
version = "1.0.101"
[dependencies.quote]
version = "1.0.41"
[dependencies.syn]
version = "2.0.106"
features = [
"full",
"extra-traits",
"visit",
]
[dev-dependencies.derive_more]
version = "2.1.1"
features = ["display"]
[dev-dependencies.strum]
version = "0.28.0"
features = ["derive"]
default-features = false