#identifier #national #icelandic

kennitala

Simple crate for handling Icelandic national identifiers

1 unstable release

Uses old Rust 2015

0.0.3 May 15, 2015

#14 in #national

2KB

rust-kennitala

Simple crate for handling Icelandic national identifiers

Works with rust 1.0 stable

Usage

Add this to your Cargo.toml

[dependencies.kennitala]
git = "https://github.com/Dagur/rust-kennitala.git"

And import and use like this

extern crate kennitala;
use kennitala::is_valid;

fn main(){
        if is_valid("012345-6789") {
                println!("Valid kennitala")
        } else {
                println!("Invalid")
        }
}

Dependencies

~3.5MB
~76K SLoC