[package]
edition = "2024"
name = "const_shader_layout"
version = "0.3.0"
build = false
exclude = [".github"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Compile-time checks for whether structs conform to WGSL's memory layout rules"
readme = "README.md"
keywords = [
"const",
"macro",
"shader",
"wgsl",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/beicause/const_shader_layout"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
no-default-features = true
features = [
"glam",
"half",
"std",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"glam",
"std",
]
glam = ["dep:glam"]
half = ["dep:half"]
libm = ["glam?/libm"]
nostd-libm = ["glam?/nostd-libm"]
std = ["glam?/std"]
[lib]
name = "const_shader_layout"
path = "src/lib.rs"
[[test]]
name = "compile"
path = "tests/compile.rs"
harness = false
required-features = [
"glam",
"half",
"std",
]
[dependencies.const_format]
version = "0.2.36"
features = ["assertcp"]
default-features = false
[dependencies.glam]
version = "0.33"
features = [
"i16",
"i32",
"u16",
"u32",
]
optional = true
default-features = false
[dependencies.half]
version = "2"
optional = true
default-features = false
[dev-dependencies.half]
version = "2"
[dev-dependencies.ui_test]
version = "0.30.7"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"