tck_no

Turkish Citizenship ID Validator and Generator Library for Rust


Crates.io version Download docs.rs docs

API Docs | Releases

Installation

With cargo add installed run:

sh $ cargo add tck_no

Generate TC Identity

```rs

use tck_no::tckn;

fn main() { let tcidentity = tckn::generate(); println!("{}", tcidentity); }

```

Validate TC Identity

```rs

use tck_no::tckn;

fn main() { let tc_identity = "38246970008";

if tckn::validate(tc_identity) {
    println!("Valid!");
} else {
    println!("Invalid!");
}

}

```

Contributing

Want to join us? Look at some of these issues:

License

Licensed under either of MIT license