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