1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*!
# tw-id-num
Check or generate Taiwan ID numbers.
檢查或是產生中華民國**國民身分證統一編號**(即**身份證字號**,而非營業人統一編號),支援**新式外來人口統一證號**。
## Usage
```rust
# #[cfg(feature = "generate")]
# {
let id = tw_id_num::generate_national(Some(tw_id_num::Sex::Male)); // e.g. "A123456789"
assert!(tw_id_num::check(&id));
assert!(tw_id_num::check_national(&id));
assert!(!tw_id_num::check_resident(&id));
# }
```
## no_std and the `generate` Feature
This crate can be compiled without std.
In few cases, you may want to generate IDs by yourself. The `generate*` functions are available if the `generate` feature is enabled. But the feature needs std.
```toml
[dependencies.tw-id-num]
version = "*"
features = ["generate"]
```
*/
pub use *;
pub use *;