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]>
49 lines
1.7 KiB
TOML
49 lines
1.7 KiB
TOML
[package]
|
|
name = "op-screening"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "OpenPay sanctions screening: OFAC/EU/UN/HMT/DFAT/SEMA list ingestion, fuzzy name matching, BSA/FinCEN reporting helpers, signed audit log."
|
|
|
|
[dependencies]
|
|
op-core = { path = "../op-core" }
|
|
|
|
# HTTP client. rustls-only to avoid linking native TLS.
|
|
reqwest = { version = "0.13", default-features = false, features = ["rustls", "json"] }
|
|
|
|
# Async runtime. Same minor features op-server uses.
|
|
tokio = { workspace = true }
|
|
|
|
# Serde stack.
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
|
|
# XML parsing for OFAC / EU / UN list payloads.
|
|
quick-xml = { workspace = true }
|
|
|
|
# CBOR for on-disk snapshot persistence.
|
|
ciborium = "0.2"
|
|
|
|
# The task spec mandates chrono for SanctionedEntity / list timestamps.
|
|
# The workspace also uses `time` elsewhere; both can coexist.
|
|
chrono = { version = "0.4", default-features = false, features = ["std", "clock", "serde"] }
|
|
|
|
# Unicode normalisation: NFKD + diacritic stripping for name canonicalisation.
|
|
unicode-normalization = "0.1"
|
|
|
|
# Audit-log cryptography.
|
|
ed25519-dalek = { version = "2", default-features = false, features = ["std", "rand_core"] }
|
|
blake3 = "1"
|
|
# 0.6 to match ed25519-dalek 2.x's RNG traits (`SigningKey::generate(&mut OsRng)`
|
|
# and `rand_core::OsRng`). `getrandom` gates OsRng. (A "0.10" pin never matched
|
|
# usage and lacks the getrandom feature, breaking the workspace resolve.)
|
|
rand_core = { version = "0.6", features = ["getrandom"] }
|
|
|
|
# Errors + tracing per workspace convention.
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
proptest = { workspace = true }
|
|
tokio = { workspace = true }
|