The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go. Nothing in the workspace depends on it any more: the harness and conformance lost their old arms, and validation dropped its dependency in its own commit. Adapted in this commit, so no gate reads the deleted tree: - CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the workspace's published crates are now metal2vulkan and metal2vulkan-air. - The published-crates test lists those two; devtools' carried trees and the five nextest groups of the old crate's tests go. - scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go); api_signatures.rs pins the three crates left. - scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly, Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations` verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated. The basis check now holds rt's refusal enums alone, which it already required. - scripts/api-cost-coverage goes: it measured only the old crate's surface. - feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables stay held to the vocabulary. - The conformance coverage generator's by-hand roots read rt instead of the old crate, and docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate modelled, gives way to rt's MTLCommandBufferError). - scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that judged it against the old one go: the new-over-old budget with its floors (floors.tsv, gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the base spread and the timing once more it set off, the re-timed pairs, the five creation rounds and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU outlier, with its alone runs as before, and the frame and burst rows by their stored instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's matrix section says these rules. Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py --check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's 49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host and on lavapipe) runs on this sha as potluck jobs that the landing note names.
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-rt",
|
|
"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. The translator's source fingerprint hashes this manifest beside its
|
|
# own, because the translator inherits from it (`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"
|