A Rust library for validating Chinese identification card numbers based on official rules and checksums.
- Validates the length and format of a Chinese identification card number
- Calculates and verifies the checksum according to official weight factors
- Lightweight and easy to integrate
To use this crate, you can run cmd:
cargo add china_identification_cardThis project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any inquiries, please reach out to the author at root@ltpp.vip.