[package]
edition = "2024"
rust-version = "1.85"
name = "static-generics"
version = "0.1.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-cost generic statics for Rust."
documentation = "https://docs.rs/static-generics"
readme = "README.md"
keywords = [
"generic",
"static",
"no-std",
"statics",
]
categories = [
"no-std",
"rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/playxe/static-generics"
[features]
default = ["std"]
nightly = []
std = ["dep:parking_lot"]
[lib]
name = "static_generics"
path = "src/lib.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "once"
path = "examples/once.rs"
[dependencies.bytemuck]
version = "1.25.2"
features = [
"zeroable_atomics",
"zeroable_maybe_uninit",
]
[dependencies.cfg-if]
version = "1"
[dependencies.parking_lot]
version = "0.12.5"
optional = true
[dev-dependencies.loom]
version = "0.7"