Packages / rupm

iban-tools 0.1.0

Validate and format IBANs (ISO 13616 mod-97 check and country lengths)

Install

cargo add iban-tools --registry rupm

In Ruststudio: Packages, search for iban-tools, Install.

Owner: Rust Studio. Licence: MIT OR Apache-2.0. Total downloads: 0. Published 2026-11-22.

Versions

README

# iban-tools

Validate and format IBANs (ISO 13616 mod-97 check and country lengths)

Add it with `rupm add iban-tools` (or `cargo add iban-tools --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!(iban_tools::is_valid("GB82 WEST 1234 5698 7654 32"));
assert_eq!(iban_tools::format("de89370400440532013000").as_deref(), Some("DE89 3704 0044 0532 0130 00"));
```