tck_no 1.0.2

Turkish Citizenship ID Validator and Generator Library for Rust
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 2 items with examples
  • Size
  • Source code size: 10.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.21 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • peacecwz/tck_no
    6 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • peacecwz

Installation

With cargo add installed run:

$ cargo add tck_no

Generate TC Identity


use tck_no::tckn;

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

Validate TC Identity


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