rs-validate-iban 0.1.0
Validate and format IBANs (ISO 13616 mod-97 check and country lengths)
Install
cargo add rs-validate-iban --registry rupm
In Ruststudio: Packages, search for rs-validate-iban, Install.
Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-23.
Versions
- 0.1.0 2026-11-23
README
# rs-validate-iban
Validate and format IBANs (ISO 13616 mod-97 check and country lengths)
Add it with `rupm add rs-validate-iban` (or `cargo add rs-validate-iban --registry rupm`).
The check only catches typing mistakes. It does not prove that an account exists and is not meant for security-critical use.
```rust
assert!(rs_validate_iban::is_valid("GB82 WEST 1234 5698 7654 32"));
assert_eq!(rs_validate_iban::format("de89370400440532013000").as_deref(), Some("DE89 3704 0044 0532 0130 00"));
```