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
2.4 KiB
TOML
40 lines
2.4 KiB
TOML
# Standalone example (own workspace) — does NOT join joule-code-rs's workspace, so
|
|
# the standard's lib stays free of a JouleClaw dependency. This is a *consumer
|
|
# binding*: how to wire JouleClaw's L3 (Model) tier into the Joule Code cascade.
|
|
[workspace]
|
|
|
|
[package]
|
|
name = "l3-jouleclaw-binding"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
description = "Example binding: JouleClaw's L3 model tier (jouleclaw-llm LlmBackend) as a Joule Code cascade FnStage. Verified model-free via EchoBackend; a real backend (vLLM, or jouleclaw-runtime GGUF) drops into the same slot."
|
|
publish = false
|
|
|
|
[dependencies]
|
|
joule-code-schema = { path = "../../joule-code-rs/crates/joule-code-schema" }
|
|
joule-code-cargo = { path = "../../joule-code-rs/crates/joule-code-cargo" }
|
|
joule-code-receipt = { path = "../../joule-code-rs/crates/joule-code-receipt" }
|
|
joule-code-cascade = { path = "../../joule-code-rs/crates/joule-code-cascade" }
|
|
jouleclaw-llm = { path = "../../../jouleclaw/jouleclaw-rs/crates/jouleclaw-llm" }
|
|
jouleclaw-energy = { path = "../../../jouleclaw/jouleclaw-rs/crates/jouleclaw-energy", features = ["ioreport"] }
|
|
# JouleClaw's own from-scratch GGUF tensor runtime (no llama.cpp, no FFI) —
|
|
# the in-process L3 backend.
|
|
jouleclaw-runtime = { path = "../../../jouleclaw/jouleclaw-rs/crates/jouleclaw-runtime" }
|
|
jouleclaw-loader-gguf = { path = "../../../jouleclaw/jouleclaw-rs/crates/jouleclaw-loader-gguf", features = ["rayon", "fabric"] }
|
|
# The grades (`Measured` / `Benchmarked` / `Estimated`) the fabric ledger prices
|
|
# a call from, which the L3 stage grades the call's projected energy by.
|
|
jouleclaw-fabric = { path = "../../../jouleclaw/jouleclaw-rs/crates/jouleclaw-fabric" }
|
|
# The GPU load the in-process meter's GPU-counter liveness probe runs
|
|
# (`gpu_liveness_load`): the `run` binary meters the in-process engine on this
|
|
# process's own CPU and GPU (`jouleclaw_energy::span::ProcessSpanMeter`).
|
|
jouleclaw-backend-apple = { path = "../../../jouleclaw/jouleclaw-rs/crates/jouleclaw-backend-apple" }
|
|
# The llama engine's subprocess, read on its own process tree where the host
|
|
# counts each process's CPU energy (macOS): `TreeMeter`.
|
|
sandbox-meter = { path = "../../../sandbox/sandbox-rs/crates/sandbox-meter" }
|
|
serde_json = "1"
|
|
|
|
# macOS: the llama engine's process is waited for without being reaped
|
|
# (`waitid` with `WNOWAIT`), so the tree meter reads its exited count.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
libc = "0.2"
|