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]>
45 lines
2.3 KiB
TOML
45 lines
2.3 KiB
TOML
[package]
|
|
name = "wai-quantum-cli"
|
|
version = "0.2.3"
|
|
edition = "2024"
|
|
license = "Apache-2.0"
|
|
description = "The wai-quantum command line: OpenQASM programs run on this machine as the quantum job service runs them (the strongest method each admits, its accuracy named, the result signed with the user's key), sent to the service, linted, drawn and verified; an MCP server for agents over stdio; and the research tools (error correction, DMRG, neural quantum states, resource estimates)."
|
|
repository = "https://git.transaction.science/Transaction-Science/open-standards"
|
|
homepage = "https://wai.transaction.science/quantum-run"
|
|
keywords = ["quantum", "openqasm", "simulation", "cli", "mcp"]
|
|
categories = ["command-line-utilities", "science", "simulation"]
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
name = "wai_quantum_cli"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "wai-quantum"
|
|
path = "src/main.rs"
|
|
|
|
[features]
|
|
default = ["service", "providers"]
|
|
# `submit`: send a job to the quantum job service over HTTPS.
|
|
service = ["dep:ureq"]
|
|
# `providers` and `run --provider`: the person's own quantum providers, their
|
|
# credentials in the operating system's keychain (wai-quantum-qpu).
|
|
providers = ["dep:wai-quantum-qpu"]
|
|
# The single-precision state vector on the GPU (`--method statevector_single`), on macOS.
|
|
metal = ["wai-quantum/quantum_sv_metal", "wai-quantum/quantum_cutrank_metal"]
|
|
# The fabric's accelerator members a statevector job may be placed on (`--fabric`, `wai-quantum fabric`): each loads its
|
|
# driver and runtime compiler when first used, so a build with them runs where there are none and finds no member there.
|
|
cuda = ["wai-quantum/quantum_fabric_cuda"]
|
|
hip = ["wai-quantum/quantum_fabric_hip"]
|
|
opencl = ["wai-quantum/quantum_fabric_opencl"]
|
|
|
|
[dependencies]
|
|
clap = { version = "4.6", features = ["derive", "env", "wrap_help"] }
|
|
clap_complete = "4.6"
|
|
getrandom = "0.4"
|
|
# float_roundtrip: a number read back reads as the double it was, so a
|
|
# result's receipt still verifies after any JSON writer has carried it.
|
|
serde_json = { version = "1", features = ["float_roundtrip"] }
|
|
ureq = { version = "3", optional = true, features = ["json"] }
|
|
wai-quantum = { version = "0.8.0", path = "../wai-quantum", default-features = false, features = ["full"] }
|
|
wai-quantum-qpu = { version = "0.4.0", path = "../wai-quantum-qpu", optional = true }
|