[package]
edition = "2024"
rust-version = "1.96"
name = "type_switch"
version = "0.1.0"
authors = ["Elliott Pierce"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple utility for compile-time unions that let you switch between different types."
homepage = "https://github.com/ElliottjPierce/type_switch"
documentation = "https://docs.rs/type_switch"
readme = "README.md"
keywords = [
"types",
"switch",
"performance",
]
categories = [
"no-std::no-alloc",
"no-std",
"rust-patterns",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ElliottjPierce/type_switch"
[lib]
name = "type_switch"
path = "src/lib.rs"
[dependencies]
[dev-dependencies.static_assertions]
version = "1.1"
[lints.clippy]
alloc_instead_of_core = "warn"
doc_markdown = "warn"
manual_let_else = "warn"
match_same_arms = "warn"
needless_lifetimes = "allow"
nonstandard_macro_braces = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
ref_as_ptr = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
too_long_first_doc_paragraph = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_or_default = "warn"
[lints.rust]
missing_docs = "warn"
type_alias_bounds = "allow"
unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs_dep)"]