rust-gpu/crates/rustc_codegen_spirv/Cargo.toml

44 lines
1.5 KiB
TOML
Raw Normal View History

[package]
name = "rustc_codegen_spirv"
version = "0.3.0-alpha.0"
2020-08-17 22:17:24 +00:00
authors = ["Embark <opensource@embark-studios.com>"]
edition = "2018"
2020-08-17 22:17:24 +00:00
license = "MIT OR Apache-2.0"
repository = "https://github.com/EmbarkStudios/rust-gpu"
#keywords = []
#categories = []
#readme = "README.md"
[lib]
crate-type = ["dylib"]
Add spirv-tools and spirv-tools-sys crates to wrap usage of spirv-tools (#179) * Add spirv-headers and spirv-tools as submodules * Add simple generator and the generated code needed for compilation * Add first pass on spirv-tools-sys * Add first pass on spirv-tools * Replace invocation of spirv-opt with spirv-tools crate * Use C++11 * Placate clippy * Add validation, replacing spirv-val with the spirv-tools crate * Fix MSVC warning * Use patched spirv-tools * Fixup metadata * Add same compiler flags as "official" build scripts * Update spirv-tools and generated files * Fixup * Add assembler and example * Use assembler in tests * Oops, fix macos TARGET_OS * write -> write_all * Start splitting spirv-tools into a compiled vs tool feature set * Checkpointing * Checkpoint * Boop * Get tests to work both with installed and compiled tools * Cleanup CI config * Splits steps to clearly show how long each part of a longer (eg test) step actually takes * Label all steps * Explicitly disable submodule checkout * Rustfmt * Rename features for consistency and fix clippy warnings * Split "core" crates from examples * Add run_clippy bash script * Add test script * Remove x flag * Newline * Actually print out errors from running val/opt * Revert drive-by import merging * Change intro to take the changes this PR has into account * Actually run tests on Windows * Fetch only the host target to reduce fetch times * Add more info when a spirv tool returns a non-zero exit code * Rustfmt * Switch tool assembler to use files to see if it fixes windows * Use files for input and output for now until I can figure out Windows being dumb * Fix API docs generation * Compile and use C++ code to check Windows issue * Return to use installed tools
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"]
[dependencies]
bimap = "0.6"
indexmap = "1.6.0"
rspirv = { git = "https://github.com/gfx-rs/rspirv.git", rev = "279cc519166b6a0b8c51d8f130949f75031e29fe" }
rustc-demangle = "0.1.18"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
2021-02-02 12:20:10 +00:00
spirv-tools = { version = "0.4.0", default-features = false }
tar = "0.4.30"
topological-sort = "0.1"
2020-08-11 11:14:18 +00:00
[dev-dependencies]
pipe = "0.4"
2020-08-11 11:14:18 +00:00
pretty_assertions = "0.6"
tempfile = "3.1"