wgsl-parse 0.4.0

Parse a wgsl source file to a syntax tree
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.87.0"
name = "wgsl-parse"
version = "0.4.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parse a wgsl source file to a syntax tree"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/wgsl-tooling-wg/wesl-rs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
attributes = []
condcomp = ["attributes"]
default = []
generics = ["attributes"]
imports = []
naga-ext = ["wgsl-types/naga-ext"]
serde = [
    "dep:serde",
    "wgsl-types/serde",
]
templates = []
tokrepr = [
    "dep:tokrepr",
    "wgsl-types/tokrepr",
]
wesl = [
    "condcomp",
    "imports",
]

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

[dependencies.annotate-snippets]
version = "0.12.4"

[dependencies.derive_more]
version = "2.0.1"
features = [
    "as_ref",
    "constructor",
    "deref",
    "deref_mut",
    "from",
    "is_variant",
    "try_unwrap",
    "unwrap",
]

[dependencies.itertools]
version = "0.14.0"

[dependencies.lalrpop-util]
version = "0.22.1"

[dependencies.lexical]
version = "7.0.4"
features = [
    "format",
    "power-of-two",
]

[dependencies.logos]
version = "0.16.0"

[dependencies.serde]
version = "1.0.215"
features = [
    "derive",
    "rc",
]
optional = true

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tokrepr]
version = "0.1.0"
optional = true

[dependencies.wgsl-types]
version = "0.4.0"

[build-dependencies.lalrpop]
version = "0.22.1"
default-features = false

[lints.clippy]
mutable_key_type = "allow"

[lints.rust]