const_shader_layout 0.2.1

Compile-time checks for whether structs conform to WGSL's memory layout rules
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "const_shader_layout"
version = "0.2.1"
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"
required-features = [
    "glam",
    "half",
    "std",
]

[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.trybuild]
version = "1.0.118"
default-features = false