Turkish Citizenship ID Validator and Generator Library for Rust
With cargo add installed run:
$ cargo add tck_no
use tck_no::tckn;
fn main() {
let tc_identity = tckn::generate();
println!("{}", tc_identity);
}
use tck_no::tckn;
fn main() {
let tc_identity = "38246970008";
if tckn::validate(tc_identity) {
println!("Valid!");
} else {
println!("Invalid!");
}
}
Want to join us? Look at some of these issues:
Licensed under either of MIT license