[package]
edition = "2024"
name = "rust-spec"
version = "0.2.0"
authors = ["Marin Veršić <marin.versic101@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Classification of types in accordance with the Rust specification"
readme = "README.md"
keywords = [
"rust",
"specification",
"classification",
"layout",
"repr",
]
categories = [
"rust-patterns",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/mversic/rust-spec"
[features]
alloc = []
default = [
"alloc",
"derive",
]
derive = ["rust-spec-derive"]
[lib]
name = "rust_spec"
path = "src/lib.rs"
[[test]]
name = "enum"
path = "tests/enum.rs"
required-features = [
"derive",
"alloc",
]
[[test]]
name = "struct"
path = "tests/struct.rs"
required-features = [
"derive",
"alloc",
]
[[test]]
name = "union"
path = "tests/union.rs"
required-features = [
"derive",
"alloc",
]
[dependencies.disjoint_impls]
version = "1.3.9"
[dependencies.rust-spec-derive]
version = "0.2.0"
optional = true
[dependencies.sealed]
version = "0.7.0"
[dev-dependencies.static_assertions]
version = "1.1.0"