wgslender 1.2.2

Minify, validate, lint, reflect, compile and refactor WGSL shaders.
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"
rust-version = "1.85"
name = "wgslender"
version = "1.2.2"
authors = ["Hugo Daniel <mail@hugodaniel.pt>"]
build = false
include = [
    "src/**/*.rs",
    "examples/**/*.rs",
    "tests/fixtures/demo.wgsl",
    "tests/fixtures/layouts.wgsl",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Minify, validate, lint, reflect, compile and refactor WGSL shaders."
readme = "README.md"
keywords = [
    "wgsl",
    "webgpu",
    "shader",
    "minifier",
    "wgpu",
]
categories = [
    "compression",
    "game-development",
    "wasm",
]
license = "CC0-1.0"
repository = "https://github.com/HugoDaniel/wgslender"

[package.metadata.docs.rs]
all-features = true

[features]
compress = [
    "wgslender-core/compress",
    "wgslender-macros?/compress",
]
default = ["macros"]
macros = ["dep:wgslender-macros"]

[lib]
name = "wgslender"
path = "src/lib.rs"

[[example]]
name = "compile"
path = "examples/compile.rs"

[[example]]
name = "embed_compressed"
path = "examples/embed_compressed.rs"
required-features = [
    "macros",
    "compress",
]

[[example]]
name = "include_wgsl"
path = "examples/include_wgsl.rs"
required-features = ["macros"]

[[example]]
name = "lint"
path = "examples/lint.rs"

[[example]]
name = "minify"
path = "examples/minify.rs"

[[example]]
name = "minify_options"
path = "examples/minify_options.rs"

[[example]]
name = "refactor"
path = "examples/refactor.rs"

[[example]]
name = "reflect_types"
path = "examples/reflect_types.rs"

[[example]]
name = "validate"
path = "examples/validate.rs"

[[example]]
name = "wgsl_module"
path = "examples/wgsl_module.rs"
required-features = ["macros"]

[dependencies.wgslender-core]
version = "1.2.2"

[dependencies.wgslender-macros]
version = "1.2.2"
optional = true

[dev-dependencies.bytemuck]
version = "1.25.2"
features = ["derive"]

[dev-dependencies.trybuild]
version = "1.0.116"

[lints.clippy]
dbg_macro = "warn"
expect_used = "warn"
missing_safety_doc = "deny"
todo = "warn"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"