Crates.io | tck_no |
lib.rs | tck_no |
version | 1.0.2 |
source | src |
created_at | 2021-12-13 12:57:16.404878 |
updated_at | 2021-12-14 22:44:40.308753 |
description | Turkish Citizenship ID Validator and Generator Library for Rust |
homepage | |
repository | https://github.com/peacecwz/tck_no/ |
max_upload_size | |
id | 497105 |
size | 7,496 |
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: