#numbers #validation #generator #turkish #generate #identifacation #kimlik

tc_kimlik

Turkish identifacation number validator and generator

2 unstable releases

0.2.0 Dec 6, 2020
0.1.0 Dec 6, 2020

#7 in #turkish

MIT license

3KB

TC Kimlik

Turkish identifacation number validator and generator.

Validating

let  tc = String::from("40243834390");
tc_kimlik::validate(&tc) // returns true

Generate valid TC Kimlik

extern crate tc_kimlik;
fn main() {
    println!("New tc kimlik: {}", tc_kimlik::generate());
}

Dependencies

~1.4–2MB
~36K SLoC