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

47 lines
2 KiB
TOML

[package]
name = "op-mobile-wallets"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "OpenPay mobile-wallet acceptance: Apple Pay, Google Pay, Samsung Pay payment-token decryption. PCI-zero — raw PAN never crosses the public API."
[dependencies]
op-core = { path = "../op-core" }
op-rails-card = { path = "../op-rails-card" }
thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
time = { workspace = true }
zeroize = { workspace = true }
subtle = { workspace = true }
# RustCrypto stack.
# - p256: ECDH on the NIST P-256 curve. All three wallets use P-256.
# - hkdf: RFC 5869 KDF used by Apple Pay (X9.63-style construction
# implemented on top of HKDF-extract+expand) and Google Pay (HKDF
# directly).
# - aes-gcm: AES-256-GCM for Apple Pay / Samsung Pay payload AEAD.
# - aes + ctr: AES-256-CTR primitive used by Google Pay ECv2 (with a
# separate HMAC-SHA256 tag).
# - hmac + sha2: HMAC-SHA256 tag + SHA-256 digests across all three.
# - base64: payloads arrive base64-encoded from JS / native SDKs.
p256 = { version = "0.13", default-features = false, features = ["ecdh", "ecdsa", "std", "arithmetic", "pem"] }
hkdf = { version = "0.13", default-features = false }
aes-gcm = { version = "0.10", default-features = false, features = ["aes", "alloc"] }
# aes 0.9 moved to cipher 0.5 (BlockCipher split into BlockCipherEncrypt/Decrypt,
# StreamCipherCoreWrapper::new gone), but google_pay.rs uses the cipher 0.4 API
# (Ctr128BE<Aes256> + KeyIvInit) and ctr 0.9 + aes-gcm 0.10 are both cipher 0.4.
# Keep aes on 0.8 so the graph has ONE aes/cipher, not two.
aes = { version = "0.8", default-features = false }
ctr = { version = "0.9", default-features = false }
hmac = { version = "0.13", default-features = false }
sha2 = { version = "0.11", default-features = false }
base64 = { version = "0.22", default-features = false, features = ["std"] }
[dev-dependencies]
proptest = { workspace = true }
hex = { workspace = true }
[features]
default = []