wgpu/naga/Cargo.toml

105 lines
3.9 KiB
TOML
Raw Normal View History

[package]
2020-02-25 19:00:51 +00:00
name = "naga"
2024-07-17 21:05:46 +00:00
version = "22.0.0"
authors = ["gfx-rs developers"]
edition = "2021"
2020-02-27 04:28:18 +00:00
description = "Shader translation infrastructure"
repository = "https://github.com/gfx-rs/wgpu/tree/trunk/naga"
2021-04-01 13:34:07 +00:00
keywords = ["shader", "SPIR-V", "GLSL", "MSL"]
2020-06-18 20:51:51 +00:00
license = "MIT OR Apache-2.0"
2021-06-03 16:06:42 +00:00
exclude = ["bin/**/*", "tests/**/*", "Cargo.lock", "target/**/*"]
resolver = "2"
autotests = false
# Override the workspace's `rust-version` key. Firefox uses `cargo vendor` to
# copy the crates it actually uses out of the workspace, so it's meaningful for
# them to have less restrictive MSRVs individually than the workspace as a
# whole, if their code permits. See `../README.md` for details.
rust-version = "1.76"
[[test]]
name = "naga-test"
path = "tests/root.rs"
2021-04-01 13:34:07 +00:00
[package.metadata.docs.rs]
all-features = true
[features]
default = []
2021-03-02 06:28:32 +00:00
dot-out = []
glsl-in = ["dep:pp-rs"]
glsl-out = []
## Enables outputting to the Metal Shading Language (MSL).
##
## This enables MSL output regardless of the target platform.
## If you want to enable it only when targeting iOS/tvOS/watchOS/macOS, use `naga/msl-out-if-target-apple`.
2020-09-14 14:27:05 +00:00
msl-out = []
## Enables outputting to the Metal Shading Language (MSL) only if the target platform is iOS/tvOS/watchOS/macOS.
##
## If you want to enable MSL output it regardless of the target platform, use `naga/msl-out`.
msl-out-if-target-apple = []
serialize = ["dep:serde", "bitflags/serde", "indexmap/serde"]
deserialize = ["dep:serde", "bitflags/serde", "indexmap/serde"]
2023-06-01 13:40:47 +00:00
arbitrary = ["dep:arbitrary", "bitflags/arbitrary", "indexmap/arbitrary"]
spv-in = ["dep:petgraph", "dep:spirv"]
spv-out = ["dep:spirv"]
wgsl-in = ["dep:hexf-parse", "dep:unicode-xid", "compact"]
2021-04-19 04:23:27 +00:00
wgsl-out = []
## Enables outputting to HLSL (Microsoft's High-Level Shader Language).
##
## This enables HLSL output regardless of the target platform.
## If you want to enable it only when targeting Windows, use `hlsl-out-if-target-windows`.
hlsl-out = []
## Enables outputting to HLSL (Microsoft's High-Level Shader Language) only if the target platform is Windows.
##
## If you want to enable HLSL output it regardless of the target platform, use `naga/hlsl-out`.
hlsl-out-if-target-windows = []
compact = []
2022-01-13 23:57:57 +00:00
[dependencies]
arbitrary = { version = "1.3", features = ["derive"], optional = true }
arrayvec.workspace = true
bitflags.workspace = true
bit-set.workspace = true
termcolor = { version = "1.4.1" }
2022-04-16 13:09:56 +00:00
# remove termcolor dep when updating to the next version of codespan-reporting
# termcolor minimum version was wrong and was fixed in
# https://github.com/brendanzab/codespan/commit/e99c867339a877731437e7ee6a903a3d03b5439e
codespan-reporting = { version = "0.11.0" }
rustc-hash.workspace = true
indexmap.workspace = true
2022-01-13 23:57:57 +00:00
log = "0.4"
2024-01-05 04:30:30 +00:00
spirv = { version = "0.3", optional = true }
thiserror.workspace = true
build(deps): bump the patch-updates group with 24 updates (#6470) Bumps the patch-updates group with 24 updates: | Package | From | To | | --- | --- | --- | | [anyhow](https://github.com/dtolnay/anyhow) | `1.0.90` | `1.0.91` | | [serde](https://github.com/serde-rs/serde) | `1.0.210` | `1.0.213` | | [thiserror](https://github.com/dtolnay/thiserror) | `1.0.64` | `1.0.65` | | [tokio](https://github.com/tokio-rs/tokio) | `1.40.0` | `1.41.0` | | [syn](https://github.com/dtolnay/syn) | `2.0.82` | `2.0.85` | | [anstream](https://github.com/rust-cli/anstyle) | `0.6.15` | `0.6.17` | | [anstyle](https://github.com/rust-cli/anstyle) | `1.0.8` | `1.0.9` | | [anstyle-parse](https://github.com/rust-cli/anstyle) | `0.2.5` | `0.2.6` | | [anstyle-query](https://github.com/rust-cli/anstyle) | `1.1.1` | `1.1.2` | | [anstyle-wincon](https://github.com/rust-cli/anstyle) | `3.0.4` | `3.0.6` | | [bytes](https://github.com/tokio-rs/bytes) | `1.7.2` | `1.8.0` | | [colorchoice](https://github.com/rust-cli/anstyle) | `1.0.2` | `1.0.3` | | [fdeflate](https://github.com/image-rs/fdeflate) | `0.3.5` | `0.3.6` | | [minicov](https://github.com/Amanieu/minicov) | `0.3.5` | `0.3.6` | | [pin-project](https://github.com/taiki-e/pin-project) | `1.1.6` | `1.1.7` | | [pin-project-internal](https://github.com/taiki-e/pin-project) | `1.1.6` | `1.1.7` | | [pin-project-lite](https://github.com/taiki-e/pin-project-lite) | `0.2.14` | `0.2.15` | | [proc-macro2](https://github.com/dtolnay/proc-macro2) | `1.0.88` | `1.0.89` | | [regex](https://github.com/rust-lang/regex) | `1.11.0` | `1.11.1` | | [rustix](https://github.com/bytecodealliance/rustix) | `0.38.37` | `0.38.38` | | [serde_derive](https://github.com/serde-rs/serde) | `1.0.210` | `1.0.213` | | [thiserror-impl](https://github.com/dtolnay/thiserror) | `1.0.64` | `1.0.65` | | [wayland-client](https://github.com/smithay/wayland-rs) | `0.31.6` | `0.31.7` | | [wayland-cursor](https://github.com/smithay/wayland-rs) | `0.31.6` | `0.31.7` | Updates `anyhow` from 1.0.90 to 1.0.91 - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.90...1.0.91) Updates `serde` from 1.0.210 to 1.0.213 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.210...v1.0.213) Updates `thiserror` from 1.0.64 to 1.0.65 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.64...1.0.65) Updates `tokio` from 1.40.0 to 1.41.0 - [Release notes](https://github.com/tokio-rs/tokio/releases) - [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.40.0...tokio-1.41.0) Updates `syn` from 2.0.82 to 2.0.85 - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/2.0.82...2.0.85) Updates `anstream` from 0.6.15 to 0.6.17 - [Commits](https://github.com/rust-cli/anstyle/compare/anstream-v0.6.15...anstream-v0.6.17) Updates `anstyle` from 1.0.8 to 1.0.9 - [Commits](https://github.com/rust-cli/anstyle/compare/v1.0.8...v1.0.9) Updates `anstyle-parse` from 0.2.5 to 0.2.6 - [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-parse-v0.2.5...anstyle-parse-v0.2.6) Updates `anstyle-query` from 1.1.1 to 1.1.2 - [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-query-v1.1.1...anstyle-query-v1.1.2) Updates `anstyle-wincon` from 3.0.4 to 3.0.6 - [Commits](https://github.com/rust-cli/anstyle/compare/anstyle-wincon-v3.0.4...anstyle-wincon-v3.0.6) Updates `bytes` from 1.7.2 to 1.8.0 - [Release notes](https://github.com/tokio-rs/bytes/releases) - [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md) - [Commits](https://github.com/tokio-rs/bytes/compare/v1.7.2...v1.8.0) Updates `colorchoice` from 1.0.2 to 1.0.3 - [Commits](https://github.com/rust-cli/anstyle/compare/colorchoice-v1.0.2...colorchoice-v1.0.3) Updates `fdeflate` from 0.3.5 to 0.3.6 - [Changelog](https://github.com/image-rs/fdeflate/blob/main/CHANGES.md) - [Commits](https://github.com/image-rs/fdeflate/compare/v0.3.5...v0.3.6) Updates `minicov` from 0.3.5 to 0.3.6 - [Changelog](https://github.com/Amanieu/minicov/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/minicov/compare/v0.3.5...v0.3.6) Updates `pin-project` from 1.1.6 to 1.1.7 - [Release notes](https://github.com/taiki-e/pin-project/releases) - [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md) - [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.6...v1.1.7) Updates `pin-project-internal` from 1.1.6 to 1.1.7 - [Release notes](https://github.com/taiki-e/pin-project/releases) - [Changelog](https://github.com/taiki-e/pin-project/blob/main/CHANGELOG.md) - [Commits](https://github.com/taiki-e/pin-project/compare/v1.1.6...v1.1.7) Updates `pin-project-lite` from 0.2.14 to 0.2.15 - [Release notes](https://github.com/taiki-e/pin-project-lite/releases) - [Changelog](https://github.com/taiki-e/pin-project-lite/blob/main/CHANGELOG.md) - [Commits](https://github.com/taiki-e/pin-project-lite/compare/v0.2.14...v0.2.15) Updates `proc-macro2` from 1.0.88 to 1.0.89 - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.88...1.0.89) Updates `regex` from 1.11.0 to 1.11.1 - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.11.0...1.11.1) Updates `rustix` from 0.38.37 to 0.38.38 - [Release notes](https://github.com/bytecodealliance/rustix/releases) - [Changelog](https://github.com/bytecodealliance/rustix/blob/main/CHANGELOG.md) - [Commits](https://github.com/bytecodealliance/rustix/compare/v0.38.37...v0.38.38) Updates `serde_derive` from 1.0.210 to 1.0.213 - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.210...v1.0.213) Updates `thiserror-impl` from 1.0.64 to 1.0.65 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.64...1.0.65) Updates `wayland-client` from 0.31.6 to 0.31.7 - [Release notes](https://github.com/smithay/wayland-rs/releases) - [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md) - [Commits](https://github.com/smithay/wayland-rs/commits) Updates `wayland-cursor` from 0.31.6 to 0.31.7 - [Release notes](https://github.com/smithay/wayland-rs/releases) - [Changelog](https://github.com/Smithay/wayland-rs/blob/master/historical_changelog.md) - [Commits](https://github.com/smithay/wayland-rs/commits) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: tokio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: anstream dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: anstyle dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: anstyle-parse dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: anstyle-query dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: anstyle-wincon dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: bytes dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: colorchoice dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: fdeflate dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: minicov dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: pin-project dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: pin-project-internal dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: pin-project-lite dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: regex dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: rustix dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: serde_derive dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: thiserror-impl dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: wayland-client dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: wayland-cursor dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-29 07:25:41 +00:00
serde = { version = "1.0.213", features = ["derive"], optional = true }
2023-10-25 17:16:06 +00:00
petgraph = { version = "0.6", optional = true }
2022-01-13 23:57:57 +00:00
pp-rs = { version = "0.2.1", optional = true }
hexf-parse = { version = "0.2.1", optional = true }
build(deps): bump the patch-updates group with 9 updates (#6312) Bumps the patch-updates group with 9 updates: | Package | From | To | | --- | --- | --- | | [thiserror](https://github.com/dtolnay/thiserror) | `1.0.63` | `1.0.64` | | [unicode-xid](https://github.com/unicode-rs/unicode-xid) | `0.2.5` | `0.2.6` | | [clap](https://github.com/clap-rs/clap) | `4.5.17` | `4.5.18` | | [clap_builder](https://github.com/clap-rs/clap) | `4.5.17` | `4.5.18` | | [clap_derive](https://github.com/clap-rs/clap) | `4.5.13` | `4.5.18` | | [quick-xml](https://github.com/tafia/quick-xml) | `0.36.1` | `0.36.2` | | [thiserror-impl](https://github.com/dtolnay/thiserror) | `1.0.63` | `1.0.64` | | [unicode-id-start](https://github.com/Boshen/unicode-id-start) | `1.2.0` | `1.3.0` | | [unicode-width](https://github.com/unicode-rs/unicode-width) | `0.1.13` | `0.1.14` | Updates `thiserror` from 1.0.63 to 1.0.64 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.63...1.0.64) Updates `unicode-xid` from 0.2.5 to 0.2.6 - [Changelog](https://github.com/unicode-rs/unicode-xid/blob/master/CHANGELOG.md) - [Commits](https://github.com/unicode-rs/unicode-xid/compare/v0.2.5...v0.2.6) Updates `clap` from 4.5.17 to 4.5.18 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.17...clap_complete-v4.5.18) Updates `clap_builder` from 4.5.17 to 4.5.18 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.5.17...v4.5.18) Updates `clap_derive` from 4.5.13 to 4.5.18 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.5.13...v4.5.18) Updates `quick-xml` from 0.36.1 to 0.36.2 - [Release notes](https://github.com/tafia/quick-xml/releases) - [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md) - [Commits](https://github.com/tafia/quick-xml/compare/v0.36.1...v0.36.2) Updates `thiserror-impl` from 1.0.63 to 1.0.64 - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.63...1.0.64) Updates `unicode-id-start` from 1.2.0 to 1.3.0 - [Commits](https://github.com/Boshen/unicode-id-start/commits) Updates `unicode-width` from 0.1.13 to 0.1.14 - [Commits](https://github.com/unicode-rs/unicode-width/compare/v0.1.13...v0.1.14) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: unicode-xid dependency-type: direct:production update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: clap dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: clap_builder dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: clap_derive dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: quick-xml dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: thiserror-impl dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates - dependency-name: unicode-id-start dependency-type: indirect update-type: version-update:semver-minor dependency-group: patch-updates - dependency-name: unicode-width dependency-type: indirect update-type: version-update:semver-patch dependency-group: patch-updates ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 03:24:12 +00:00
unicode-xid = { version = "0.2.6", optional = true }
2022-01-13 23:57:57 +00:00
[build-dependencies]
cfg_aliases.workspace = true
[dev-dependencies]
2021-04-14 18:20:48 +00:00
diff = "0.1"
env_logger.workspace = true
itertools.workspace = true
2024-01-17 19:47:13 +00:00
# This _cannot_ have a version specified. If it does, crates.io will look
# for a version of the package on crates when we publish naga. Path dependencies
# are allowed through though.
hlsl-snapshots = { path = "./hlsl-snapshots" }
# Require at least version 0.7.1 of ron, this version changed how floating points are
# serialized by forcing them to always have the decimal part, this makes it backwards
# incompatible with our tests because we do a syntactic diff and not a semantic one.
2023-07-20 00:44:33 +00:00
ron = "0.8.0"
2023-04-03 20:01:16 +00:00
rspirv = { version = "0.11", git = "https://github.com/gfx-rs/rspirv", rev = "b969f175d5663258b4891e44b76c1544da9661ab" }
serde = { workspace = true, features = ["derive"] }
2024-01-05 04:30:30 +00:00
spirv = { version = "0.3", features = ["deserialize"] }
strum.workspace = true