use-routing-number 0.1.0

ABA routing number validation primitives for RustUse finance crates
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 6 items with examples
  • Size
  • Source code size: 7.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 435.25 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-routing-number

ABA routing number validation primitives for RustUse finance crates.

use-routing-number validates 9-digit ABA routing numbers with the standard checksum. It does not connect to banks or verify account ownership.

Example

use use_routing_number::RoutingNumber;

let routing = RoutingNumber::new("021000021")?;

assert_eq!(routing.as_str(), "021000021");
assert!(RoutingNumber::new("021000022").is_err());
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for ABA routing number shape and checksum validation. It does not provide bank-directory lookups, ACH processing, wire processing, or account validation.

License

Licensed under either MIT or Apache-2.0.