The repository tracks the latest stable Rust, pinned at the root. A
`rust-version` key states a *floor* -- the oldest toolchain a crate supports --
which is a different promise, and one this repository does not make. It also
said 1.97 while the pin was 1.98.0 and nothing verified it, so it was a claim in
the wrong direction and unchecked in both.
So it goes, everywhere:
59 rust-version = "1.97" (workspace and package declarations)
417 rust-version.workspace = true (members inheriting them)
476 files, 476 deletions, 0 insertions
The 417 are why this is not the sixty-file change it looks like from a grep for
the value. A member inheriting a key that no longer exists does not fall back to
a default -- its manifest stops resolving. Removing the declarations without the
inherits would have broken every workspace that has members.
Deliberately untouched: `joule-code-rs/vendor/wtransport/Cargo.toml`. That is a
vendored third-party crate declaring a floor about itself, not about us, and our
pin is above it. Editing vendored source to satisfy our own policy would make
the copy diverge from upstream for no benefit.
Verified rather than assumed:
- all 493 `Cargo.toml` files in the tree parse (`tomllib`)
- `cargo metadata --no-deps --locked` resolves on `joule-code-rs`, `wai-rs`,
`openpay`, `mesh-rs`, `sandbox-rs` and `jcp-rs` -- the check that actually
exercises workspace inheritance, which a TOML parse does not
- no `Cargo.lock` changed; `rust-version` is not lockfile state
`wai/wai-verify/Cargo.toml` already carried a comment saying it omits
`rust-version` on purpose, so this makes the rest of the tree agree with the one
crate that had already decided.
What this gives up, stated plainly: cargo can no longer greet an older
toolchain with "requires rustc 1.97" and will instead fail wherever the code
first needs something newer. That is the cost of not maintaining a floor, and
it is the right cost when the floor was fiction.
Co-Authored-By: Claude Opus 5 <[email protected]>
64 lines
3 KiB
TOML
64 lines
3 KiB
TOML
[package]
|
|
name = "wai-pack"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "Apache-2.0"
|
|
description = "The reference packager of WAI's packaging extension: a declared policy and its digest, scene-cut segmentation with a bounded lookahead, staged packages of refinement layers and stills, live windows, simulated delivery, and the conformance corpus that pins them."
|
|
repository = "https://git.transaction.science/Transaction-Science/open-standards"
|
|
publish = false
|
|
|
|
# Its own workspace and Cargo.lock, like the other crates beside wai-rs.
|
|
[workspace]
|
|
|
|
[lib]
|
|
name = "wai_pack"
|
|
|
|
[[bin]]
|
|
name = "wai-pack"
|
|
path = "src/bin/wai_pack.rs"
|
|
|
|
[dependencies]
|
|
# The standard's crate: canonical JSON and the capability registry (ungated); the
|
|
# integer video encoder and decoder (video_int); the stage index and the package receipt
|
|
# (video_package); HTTP delivery's codecs union and floor (http); staged measurement's
|
|
# counted bytes and output digest (stage_measure); the measurement claim and its figure
|
|
# view (receipt_claims); the model meter (energy_meter); and a still's writer and reader
|
|
# (png_still, src/png.rs re-exports them); and the platform encoders, the Annex B reader and the
|
|
# encode record (platform_encode), for an encoded rendition over a package's pieces
|
|
# (src/rendition.rs), each encoder loaded at run time. No codec library is linked.
|
|
wai = { path = "../wai-rs", default-features = false, features = ["video_int", "video_package", "http", "stage_measure", "receipt_claims", "energy_meter", "png_still", "platform_encode"] }
|
|
# Stages on a GPU (feature `gpu`, packaging §11.6): the motion search, SSE and BLAKE3's
|
|
# chunk function as WGSL kernels, in a crate of its own with its own lockfile, as
|
|
# wai-ops-gpu is. Off by default: a build without it places every stage on the CPU.
|
|
wai-pack-gpu = { path = "../wai-pack-gpu", optional = true }
|
|
ed25519-dalek = "2"
|
|
# TOML 1.0 (the 0.8 line; later lines read TOML 1.1, which a policy must not use).
|
|
toml = { version = "0.8", default-features = false, features = ["parse"] }
|
|
serde_json = "1"
|
|
blake3 = "1"
|
|
sha2 = "0.10"
|
|
# Inflate, for the verifier's reader of a still (wai's png_still, which src/png.rs
|
|
# re-exports): an implementation apart from the packer's own deflate, so a still is
|
|
# decoded by code that did not write it.
|
|
|
|
[features]
|
|
default = []
|
|
# A GPU backend for the stages §11.6 lets a GPU run (wai-pack-gpu, through wgpu; shown exact on Metal).
|
|
gpu = ["dep:wai-pack-gpu"]
|
|
# The fabric meter on macOS (src/fabric_meter.rs): the kernel's account of the process's
|
|
# CPU energy, and the GPU rail's energy attributed by GPU time, without privileges.
|
|
fabric-meter = []
|
|
|
|
# Release builds check integer overflow as debug builds do, so the release tests in CI
|
|
# catch a wrapped product (a field read as u16 and doubled) rather than run past it.
|
|
[dev-dependencies]
|
|
# An inflater independent of the reader's own, to read the writer's stills back in a test.
|
|
miniz_oxide = "0.8"
|
|
|
|
[profile.release]
|
|
overflow-checks = true
|
|
|
|
# R3 of the design: no float decides anything. The library and the CLI deny float
|
|
# arithmetic outright.
|
|
[lints.clippy]
|
|
float_arithmetic = "deny"
|