use-iban 0.1.0

IBAN validation and formatting primitives for RustUse finance crates
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented1 out of 10 items with examples
  • Size
  • Source code size: 13.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 463.68 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-finance
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-iban

International Bank Account Number primitives for RustUse finance crates.

use-iban validates IBAN shape, country-specific length, and the standard mod-97 checksum. It normalizes compact text for local storage and can format grouped display text.

Example

use use_iban::Iban;

let iban = Iban::new("gb82 west 1234 5698 7654 32")?;

assert_eq!(iban.as_str(), "GB82WEST12345698765432");
assert_eq!(iban.format_grouped(), "GB82 WEST 1234 5698 7654 32");
assert_eq!(iban.country_code(), "GB");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for local IBAN validation, compact normalization, and display grouping. It does not perform bank lookup, account ownership validation, registry fetching, payment initiation, or bank integration.

License

Licensed under either MIT or Apache-2.0.