Cargo.toml 1.74 KB
Newer Older
1
[package]
2
name = "naga"
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
3
version = "0.7.1"
4
authors = ["Naga Developers"]
5
edition = "2018"
6
7
description = "Shader translation infrastructure"
homepage = "https://github.com/gfx-rs/naga"
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
8
repository = "https://github.com/gfx-rs/naga/tree/v0.7"
9
keywords = ["shader", "SPIR-V", "GLSL", "MSL"]
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
10
license = "MIT OR Apache-2.0"
11
exclude = ["bin/**/*", "tests/**/*", "Cargo.lock", "target/**/*"]
12
resolver = "2"
13

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

17
[dependencies]
Connor Fitzgerald's avatar
Connor Fitzgerald committed
18
19
# MSRV warning: bitflags 1.3 requires Rust-1.46
bitflags = "1"
20
bit-set = "0.5"
21
codespan-reporting = { version = "0.11.0", optional = true }
22
fxhash = "0.2"
Jim Blandy's avatar
Jim Blandy committed
23
indexmap = "1.6" # 1.7 has MSRV 1.49
24
log = "0.4"
AIOOB's avatar
AIOOB committed
25
num-traits = "0.2"
26
spirv = { version = "0.2", optional = true }
27
thiserror = "1.0.21"
28
serde = { version = "1.0", features = ["derive"], optional = true }
aentity's avatar
aentity committed
29
petgraph = { version ="0.6", optional = true }
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
30
pp-rs = { version = "0.2.1", optional = true }
31
hexf-parse = { version = "0.2.1", optional = true }
João Capucho's avatar
João Capucho committed
32
33

[features]
34
default = []
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
35
dot-out = []
36
glsl-in = ["pp-rs"]
37
glsl-validate = []
38
glsl-out = []
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
39
msl-out = []
Jim Blandy's avatar
Jim Blandy committed
40
41
serialize = ["serde", "indexmap/serde-1"]
deserialize = ["serde", "indexmap/serde-1"]
42
spv-in = ["petgraph", "spirv"]
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
43
spv-out = ["spirv"]
44
wgsl-in = ["codespan-reporting", "hexf-parse"]
Igor Shaposhnik's avatar
Igor Shaposhnik committed
45
wgsl-out = []
Timo de Kort's avatar
Timo de Kort committed
46
hlsl-out = []
47
span = ["codespan-reporting"]
48
validate = []
49
50

[dev-dependencies]
Dzmitry Malyshau's avatar
Dzmitry Malyshau committed
51
diff = "0.1"
52
ron = "0.6"
53
serde = { version = "1.0", features = ["derive"] }
54
55
spirv = { version = "0.2", features = ["deserialize"] }
rspirv = "0.10"
56
env_logger = "0.8"
57
58
59

[workspace]
members = [".", "cli"]
60
61
62
63
64

# Include "cli", so that `cargo run` runs the CLI by default. Include ".", so
# that `cargo test` includes naga's own tests by default (but note, using the
# features that `cli/Cargo.toml` requests).
default-members = [".", "cli"]