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]>
40 lines
1.9 KiB
TOML
40 lines
1.9 KiB
TOML
[package]
|
|
name = "wai-fleet"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "Apache-2.0"
|
|
description = "A WAI fleet as a service: an organisation's nodes enrolled by their signing keys, the session summaries and per-hop records they sign verified and kept append-only, and the fleet report the organisation signs for a period, exported as a bundle that verifies offline."
|
|
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]
|
|
|
|
# The relay's wtransport, vendored with its WebTransport session close, as the relay's own
|
|
# workspace patches it (joule-code/joule-code-rs/vendor/wtransport/VENDORED.md): the relay is a
|
|
# dev-dependency here, for its own types in the tests.
|
|
[patch.crates-io]
|
|
wtransport = { path = "../../joule-code/joule-code-rs/vendor/wtransport" }
|
|
|
|
[dependencies]
|
|
axum = "0.8"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "sync", "signal", "io-util", "time"] }
|
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
ed25519-dalek = "2"
|
|
getrandom = "0.4"
|
|
# `wai-fleet collect` reads a node's published summary file over https: rustls with ring, as the
|
|
# relay's own upstream does, and the platform's roots.
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
|
|
tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
|
|
rustls-native-certs = "0.8"
|
|
wai = { path = "../wai-rs", default-features = false, features = ["fleet"] }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
|
|
[dev-dependencies]
|
|
sha2 = "0.10"
|
|
# The reference relay, for its own types: the corpus's summaries read and re-serialised by them,
|
|
# and summaries and per-hop records signed by its own code, collected from a file it would write.
|
|
joule-moq-relay = { path = "../../joule-code/joule-code-rs/crates/joule-moq-relay" }
|
|
hex = "0.4"
|