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