open-standards/openpay/crates/op-iso20022/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

56 lines
2.5 KiB
TOML

[package]
name = "op-iso20022"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "OpenPay ISO 20022 facade: typed, validated wrapper over open-payments-iso20022 with FedNow, RTP, PIX, SEPA Instant profiles."
[dependencies]
op-core = { path = "../op-core" }
# The umbrella `open-payments-iso20022` crate only re-exports types via
# its private `document.rs` enum; the per-family sub-crates aren't
# accessible through it. Add them as direct deps so we can reference
# specific message versions (`pacs_008_001_08::FIToFICustomerCreditTransferV08`)
# explicitly. All pinned to =1.0.10 except fednow companion which
# lagged at =1.0.9.
open-payments-iso20022 = { workspace = true }
# The sub-crates need the `derive_*` feature set turned on at the
# sub-crate level (the umbrella crate doesn't forward them to deps
# we declare ourselves). `derive_all` bundles serde + debug + default
# + partial_eq + clone, which is what every domain type in this crate
# expects.
open-payments-iso20022-pacs = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-pain = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-camt = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-admi = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-head = { version = "=1.0.10", features = ["derive_all"] }
# The per-family crates `use iso20022_common::common::*` privately;
# nested element types (ReportEntry14, CreditDebitCode, ...) live here,
# not in the camt module. We name them directly when flattening a
# statement, so depend on it explicitly with the same derive set.
iso20022-common = { version = "=1.0.10", features = ["derive_all"] }
open-payments-fednow = { workspace = true }
quick-xml = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
time = { workspace = true }
uuid = { workspace = true }
[dev-dependencies]
insta = { workspace = true }
proptest = { workspace = true }
[features]
default = []
# Enable per-rail profile validators. Each profile encodes the
# scheme-specific subset of ISO 20022 (e.g. FedNow's "Send" participant
# requires UETR, IMAD, specific charge bearer codes, etc.)
fednow = []
rtp = []
sepa-inst = []
pix = []
# When enabled, runs full XSD-style validation. Off by default for hot
# paths; on for ingress to catch bad messages before they reach the rail.
strict-validation = []