2020-07-24 10:37:14 +00:00
|
|
|
[package]
|
|
|
|
name = "rustc_codegen_spirv"
|
2022-08-12 10:38:45 +00:00
|
|
|
version = "0.4.0-alpha.14"
|
2020-08-17 22:17:24 +00:00
|
|
|
authors = ["Embark <opensource@embark-studios.com>"]
|
2020-07-24 10:37:14 +00:00
|
|
|
edition = "2018"
|
2020-08-17 22:17:24 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
|
|
|
repository = "https://github.com/EmbarkStudios/rust-gpu"
|
2022-08-11 11:32:35 +00:00
|
|
|
description = "SPIR-V code generator backend for rustc"
|
2020-08-17 22:17:24 +00:00
|
|
|
#keywords = []
|
|
|
|
#categories = []
|
|
|
|
#readme = "README.md"
|
2020-07-24 10:37:14 +00:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["dylib"]
|
|
|
|
|
2020-10-29 22:03:07 +00:00
|
|
|
[features]
|
|
|
|
# By default, the use-compiled-tools is enabled, as doesn't require additional
|
|
|
|
# setup steps for the user. This does however mean that you will need to disable
|
|
|
|
# default features and explicitly enable `use-installed-tools` if you are using
|
|
|
|
# this in an environment with spirv-tools in PATH, and you don't want to take
|
|
|
|
# the compile time cost
|
|
|
|
default = ["use-compiled-tools"]
|
|
|
|
# If enabled, uses spirv-tools binaries installed in PATH, instead of
|
|
|
|
# compiling and linking the spirv-tools C++ code
|
|
|
|
use-installed-tools = ["spirv-tools/use-installed-tools"]
|
|
|
|
# If enabled will compile and link the C++ code for the spirv tools, the compiled
|
|
|
|
# version is preferred if both this and `use-installed-tools` are enabled
|
|
|
|
use-compiled-tools = ["spirv-tools/use-compiled-tools"]
|
|
|
|
|
2020-07-24 10:37:14 +00:00
|
|
|
[dependencies]
|
2021-03-29 01:29:49 +00:00
|
|
|
# HACK(eddyb) these only exist to unify features across dependency trees,
|
|
|
|
# in order to avoid multiple separate instances of `rustc_codegen_spirv`.
|
2021-06-17 15:06:26 +00:00
|
|
|
hashbrown = { version = "0.11", features = ["default"] }
|
2021-03-29 01:29:49 +00:00
|
|
|
libc = { version = "0.2", features = ["align", "extra_traits"] }
|
|
|
|
num-traits = { version = "0.2", features = ["libm"] }
|
|
|
|
syn = { version = "1", features = ["visit", "visit-mut"] }
|
|
|
|
|
|
|
|
# Normal dependencies.
|
2021-08-19 06:45:29 +00:00
|
|
|
ar = "0.9.0"
|
2021-01-11 09:08:02 +00:00
|
|
|
bimap = "0.6"
|
2020-12-02 11:05:04 +00:00
|
|
|
indexmap = "1.6.0"
|
2021-10-29 11:38:28 +00:00
|
|
|
rspirv = "0.11"
|
2021-08-27 18:16:26 +00:00
|
|
|
rustc-demangle = "0.1.21"
|
2022-08-10 22:20:30 +00:00
|
|
|
sanitize-filename = "0.4"
|
2020-12-03 16:14:32 +00:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
2021-02-10 14:07:35 +00:00
|
|
|
smallvec = "1.6.1"
|
2022-02-04 15:19:49 +00:00
|
|
|
spirv-tools = { version = "0.8", default-features = false }
|
2022-08-12 10:38:45 +00:00
|
|
|
rustc_codegen_spirv-types = { path = "../rustc_codegen_spirv-types", version = "0.4.0-alpha.14" }
|
2020-08-11 11:14:18 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2021-01-11 09:08:02 +00:00
|
|
|
pipe = "0.4"
|
2021-10-14 14:38:15 +00:00
|
|
|
pretty_assertions = "1.0"
|
2021-06-17 15:06:26 +00:00
|
|
|
tempfile = "3.2"
|
2021-03-09 06:33:43 +00:00
|
|
|
|
2021-12-14 07:09:21 +00:00
|
|
|
# Note that in order to use RA and have access to `rustc_*` crates, you also
|
|
|
|
# need to set `"rust-analyzer.rustcSource": "discover"` in e.g. VSCode.
|
2021-03-09 06:33:43 +00:00
|
|
|
[package.metadata.rust-analyzer]
|
|
|
|
# This crate uses #[feature(rustc_private)]
|
|
|
|
rustc_private = true
|