[package]
edition = "2021"
name = "oneof"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Enum variant projection — access one variant at a time"
readme = false
keywords = [
"enum",
"variant",
"projection",
"derive",
"accessor",
]
categories = ["rust-patterns"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/wupeng1221/oneof"
[lib]
name = "oneof"
path = "src/lib.rs"
[[example]]
name = "chain_projection"
path = "examples/chain_projection.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "exhaustive"
path = "tests/exhaustive.rs"
[dependencies.oneof_derive]
version = "0.1"
[dev-dependencies.trybuild]
version = "1.0"