[package]
edition = "2024"
rust-version = "1.85.0"
name = "closed-trait"
version = "0.2.0"
authors = ["ZwenDo"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Seal a trait to a fixed set of types, and generate an enum and match macro over them"
readme = "README.md"
keywords = [
"sealed",
"trait",
"macro",
"enum",
"match",
]
categories = [
"rust-patterns",
"development-tools",
"no-std",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ZwenDo/closed-trait"
[lib]
name = "closed_trait"
path = "src/lib.rs"
[[test]]
name = "borrowing"
path = "tests/borrowing.rs"
[[test]]
name = "constgen"
path = "tests/constgen.rs"
[[test]]
name = "forwarding"
path = "tests/forwarding.rs"
[[test]]
name = "generics"
path = "tests/generics.rs"
[[test]]
name = "grouping"
path = "tests/grouping.rs"
[[test]]
name = "if_implements_fn"
path = "tests/if_implements_fn.rs"
[[test]]
name = "match_any"
path = "tests/match_any.rs"
[[test]]
name = "options"
path = "tests/options.rs"
[[test]]
name = "paths"
path = "tests/paths.rs"
[[test]]
name = "sealed"
path = "tests/sealed.rs"
[[test]]
name = "ui"
path = "tests/ui.rs"
[[test]]
name = "variant_names"
path = "tests/variant_names.rs"
[dependencies.closed-trait-macros]
version = "0.2.0"
[dev-dependencies.trybuild]
version = "1.0.119"