Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/crates/bevy_shader/Cargo.toml
6601 views
1
[package]
2
name = "bevy_shader"
3
version = "0.17.0-dev"
4
edition = "2024"
5
description = "Provides shader asset types and import resolution for Bevy"
6
homepage = "https://bevy.org"
7
repository = "https://github.com/bevyengine/bevy"
8
license = "MIT OR Apache-2.0"
9
keywords = ["bevy", "shader"]
10
11
[dependencies]
12
# bevy
13
bevy_asset = { path = "../bevy_asset", version = "0.17.0-dev" }
14
bevy_reflect = { path = "../bevy_reflect", version = "0.17.0-dev" }
15
bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev" }
16
17
# other
18
wgpu-types = { version = "26", default-features = false }
19
naga = { version = "26", features = ["wgsl-in"] }
20
serde = { version = "1", features = ["derive"] }
21
thiserror = { version = "2", default-features = false }
22
wesl = { version = "0.1.2", optional = true }
23
tracing = { version = "0.1", default-features = false, features = ["std"] }
24
25
26
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
27
# Omit the `glsl` feature in non-WebAssembly by default.
28
naga_oil = { version = "0.19", default-features = false, features = [
29
"test_shader",
30
] }
31
32
[target.'cfg(target_arch = "wasm32")'.dependencies]
33
naga_oil = { version = "0.19" }
34
35
[features]
36
shader_format_glsl = ["naga/glsl-in", "naga/wgsl-out", "naga_oil/glsl"]
37
shader_format_spirv = ["naga/spv-in", "naga/spv-out"]
38
shader_format_wesl = ["wesl"]
39
40
# Bevy users should _never_ turn this feature on.
41
#
42
# Bevy/wgpu developers can turn this feature on to test a newer version of wgpu without needing to also update naga_oil.
43
#
44
# When turning this feature on, you can add the following to bevy/Cargo.toml (not this file), and then run `cargo update`:
45
# [patch.crates-io]
46
# wgpu = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
47
# wgpu-core = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
48
# wgpu-hal = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
49
# wgpu-types = { git = "https://github.com/gfx-rs/wgpu", rev = "..." }
50
decoupled_naga = []
51
52
[lints]
53
workspace = true
54
55
[package.metadata.docs.rs]
56
rustdoc-args = ["-Zunstable-options", "--generate-link-to-definition"]
57
all-features = true
58
59