crates/metal2vulkan/build.rs only set M2V_SOURCE_DIGEST (named cache::SOURCE_DIGEST in its comment), and no code reads it: no env!/option_env! of it in the tree, and the consumer's checkout has 0 hits for M2V_SOURCE_DIGEST and SOURCE_DIGEST (consumer-uses.sh: development 12b87d3d6b and 64 refs). The script, its copy of build_support.rs, the sha2 build-dependency and validation's test that held the two copies equal (the_build_support_copy_is_the_translators) go; the manifest says build = false, as the AIR front end's does, so no build script appears unannounced. Validation's build_support.rs is now the only copy. Its product fingerprint hashes the translator's manifest, a build.rs only where one lies beside it (none now), and the module tree; the definition's tag names the change, so no fingerprint under the old definition equals one under this. The synthetic-product tests drop the copied file from their tree. The manifests' comments name validation's fingerprint in place of the translator's.
61 lines
2.6 KiB
TOML
61 lines
2.6 KiB
TOML
[workspace]
|
|
members = [
|
|
"crates/metal2vulkan",
|
|
"crates/metal2vulkan-air",
|
|
"crates/metal2vulkan-conformance",
|
|
"crates/metal2vulkan-devtools",
|
|
"crates/metal2vulkan-harness",
|
|
"crates/metal2vulkan-runtime",
|
|
"crates/metal2vulkan-validation",
|
|
]
|
|
# A bare `cargo build`, `cargo test` or `cargo run` at the root acts on the translator alone, as it
|
|
# did when the translator's package was this manifest; `--workspace` or `-p` selects the others.
|
|
default-members = ["crates/metal2vulkan"]
|
|
resolver = "2"
|
|
|
|
# What every crate here shares. Validation's product fingerprint hashes this manifest beside the
|
|
# translator's, because the translator inherits from it (`crates/metal2vulkan-validation/build_support.rs`).
|
|
[workspace.package]
|
|
edition = "2021"
|
|
rust-version = "1.98"
|
|
license = "GPL-2.0-or-later OR LGPL-3.0-or-later"
|
|
authors = ["Anees Iqbal <hello@aneesiqbal.ai>"]
|
|
repository = "https://github.com/steelbrain/metal2vulkan"
|
|
|
|
# The external dependencies more than one crate takes, at one version each. A crate adds its own
|
|
# features (and `optional`). The crates' dependencies on one another stay in their own manifests,
|
|
# by path and version: the translator pins the AIR front end exactly (`=0.x.y`), and its build
|
|
# script reads that path from its own manifest.
|
|
[workspace.dependencies]
|
|
# Never the loader at build time: a crate that opens it adds `loaded`.
|
|
ash = { version = "0.38", default-features = false }
|
|
libc = "0.2"
|
|
# The Windows forms of the host facilities (pages, clocks, threads); MIT OR Apache-2.0.
|
|
windows-sys = "0.61"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# SHA-256 on the CPU's own instructions where it has them (ARMv8's SHA2 extension, x86's SHA-NI),
|
|
# detected at run time; nothing here uses the default `alloc` and `oid` features.
|
|
sha1 = { version = "0.11", default-features = false }
|
|
sha2 = { version = "0.11", default-features = false }
|
|
|
|
# Dev and test builds keep line tables (file and line in backtraces) and no other debug info, and
|
|
# dependencies none. Full debug info made each link of a binary holding the translator, the runtime
|
|
# and validation take 35-47 s; on an i9-13900 the clean workspace build's links
|
|
# summed to 726 s against 94 s with this, and its target to half the size. A debugger session that
|
|
# needs variables builds with `--profile debugger`. Profile settings only apply to builds whose
|
|
# workspace root this is, so they change how the repo builds itself and nothing about how a
|
|
# consumer builds the published crates.
|
|
[profile.dev]
|
|
debug = "line-tables-only"
|
|
|
|
[profile.dev.package."*"]
|
|
debug = false
|
|
|
|
[profile.debugger]
|
|
inherits = "dev"
|
|
debug = "full"
|
|
|
|
[profile.debugger.package."*"]
|
|
debug = "full"
|