open-standards/joule-code/joule-code-rs/crates/joule-moq/Cargo.toml
Transaction Science d14f583d92 Cargo: no minimum-supported-version floor, because the policy is latest stable
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]>
2026-11-03 17:42:20 -05:00

63 lines
3.1 KiB
TOML

[package]
name = "joule-moq"
version = "0.3.0"
description = "MoQT (Media over QUIC Transport, draft-ietf-moq-transport-22, with -18 and -16 for interoperation) wire protocol + JWP receipt extension for CommunicationOS broadcast media. Trait surface lets the Realtime stack publish, subscribe, and relay tracks with object-level signed provenance and joule receipts."
edition = "2024"
license = "Apache-2.0"
repository = "https://github.com/transaction-science/open-standards"
[dependencies]
bytes = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
blake3 = "1"
ed25519-dalek = { version = "2", features = ["serde", "rand_core"] }
# SHA-256 for a room grant's digest (WAI live-rooms §4.2), the one a proof names.
sha2 = "0.10"
# The async surface's dependencies (feature `runtime`).
jwp = { path = "../jwp", optional = true }
async-trait = { version = "0.1", optional = true }
tracing = { version = "0.1", optional = true }
tokio = { version = "1", features = ["sync", "rt", "macros", "io-util", "net", "time"], optional = true }
uuid = { version = "1", features = ["v4", "v5", "v7", "serde", "js"], optional = true }
chrono = { version = "0.4", features = ["serde"], optional = true }
rand_core_06 = { package = "rand_core", version = "0.6", features = ["getrandom"], optional = true }
futures = { version = "0.3", optional = true }
# End-to-end sealed objects (feature `secure-objects`): RustCrypto's AES-GCM, AES-CTR,
# HMAC and HKDF, all Apache-2.0 OR MIT, at the versions this workspace's lock already
# holds. No default features: nothing here draws randomness.
aes-gcm = { version = "0.10", default-features = false, features = ["aes", "alloc"], optional = true }
aes = { version = "0.8", optional = true }
ctr = { version = "0.9", optional = true }
hmac = { version = "0.12", optional = true }
hkdf = { version = "0.12", optional = true }
[features]
default = ["runtime"]
# The async surface: the endpoint traits, the in-memory mock, and (with `quic`) the QUIC
# transport, on tokio and the JWP framing crate. Without it the crate is the -22 codec,
# the carriage of objects and receipts, the receipts and the session's setup rules, with
# no runtime and no native dependency, and it builds for wasm32-unknown-unknown
# (`joule-moq-web` builds it so).
runtime = ["dep:jwp", "dep:async-trait", "dep:tracing", "dep:tokio", "dep:uuid", "dep:chrono", "dep:rand_core_06", "dep:futures"]
quic = ["runtime", "dep:quinn", "dep:rustls", "dep:rcgen"]
# Sealing and opening objects end to end (WAI confidentiality §4, §6): no runtime, so it
# builds for wasm32-unknown-unknown beside the codec.
secure-objects = ["dep:aes-gcm", "dep:aes", "dep:ctr", "dep:hmac", "dep:hkdf"]
[dependencies.quinn]
version = "0.11"
optional = true
[dependencies.rustls]
version = "0.23"
features = ["ring", "std"]
optional = true
[dependencies.rcgen]
version = "0.14"
optional = true
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread"] }