| Crates.io | id-card |
| lib.rs | id-card |
| version | 0.1.3 |
| created_at | 2021-05-18 10:38:20.505652+00 |
| updated_at | 2021-06-15 08:39:24.076478+00 |
| description | Chinese identification card number verification, including region code, birthday, and check code. |
| homepage | |
| repository | https://github.com/Ethan1225/id-card-rust.git |
| max_upload_size | |
| id | 398933 |
| size | 359,410 |
Chinese identification card number verification, including region code, birthday, and check code.
APL 2.0, see LICENSE file.
In Cargo.toml add
[dependencies]
id-card="0.1"
Then re-run cargo build. That fetches the dependencies and builds
the code.
extern crate id_card;
fn main() {
println!("{}", id_card::validate("440524188001010014"));//outputs: true
}
Test changes before commitment.(Install nightly if it haven't been installed: rustup install nightly)
cargo clean
cargo fmt --all -- --check
cargo build
cargo +nightly bench
cargo test