-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
147 lines (111 loc) · 3.39 KB
/
Makefile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
all: build check test docs
fmt:
cargo fmt
build: full default add-ordinal-suffix commas digits find-capital-by-province persian-chars national-id remove-ordinal-suffix url-fix verity-card-number phone-number bill number-to-words get-bank-name-by-card-number extract-card-number get-place-by-iran-national-id half-space legal-id words-to-number sheba time-diff
check: clippy lint
test:
RUST_BACKTRACE=1 cargo test --all-features -- --nocapture
docs:
cargo doc --all-features
clippy:
cargo clippy --all-features --no-deps
lint:
cargo fmt --check --verbose
full:
@ echo ""
cargo build --no-default-features --features=full
@ ls -sh target/debug/*.rlib
default:
@ echo ""
cargo build
@ ls -sh target/debug/*.rlib
add-ordinal-suffix:
@ echo ""
cargo build --no-default-features --features=add-ordinal-suffix
@ ls -sh target/debug/*.rlib
commas:
@ echo ""
cargo build --no-default-features --features=commas
@ ls -sh target/debug/*.rlib
digits:
@ echo ""
cargo build --no-default-features --features=digits
@ ls -sh target/debug/*.rlib
find-capital-by-province:
@ echo ""
cargo build --no-default-features --features=find-capital-by-province
@ ls -sh target/debug/*.rlib
persian-chars:
@ echo ""
cargo build --no-default-features --features=persian-chars
@ ls -sh target/debug/*.rlib
arabic-chars:
@ echo ""
cargo build --no-default-features --features=arabic-chars
@ ls -sh target/debug/*.rlib
national-id:
@ echo ""
cargo build --no-default-features --features=national-id
@ ls -sh target/debug/*.rlib
cargo build --no-default-features --features="national-id serde"
@ ls -sh target/debug/*.rlib
remove-ordinal-suffix:
@ echo ""
cargo build --no-default-features --features=remove-ordinal-suffix
@ ls -sh target/debug/*.rlib
url-fix:
@ echo ""
cargo build --no-default-features --features=url-fix
@ ls -sh target/debug/*.rlib
verity-card-number:
@ echo ""
cargo build --no-default-features --features=verity-card-number
@ ls -sh target/debug/*.rlib
number-plate:
@ echo ""
cargo build --no-default-features --features=number-plate
@ ls -sh target/debug/*.rlib
phone-number:
@ echo ""
cargo build --no-default-features --features=phone-number
@ ls -sh target/debug/*.rlib
cargo build --no-default-features --features="phone-number serde"
@ ls -sh target/debug/*.rlib
bill:
@ echo ""
cargo build --no-default-features --features=bill
number-to-words:
@ echo ""
cargo build --no-default-features --features=number-to-words
@ ls -sh target/debug/*.rlib
get-bank-name-by-card-number:
@ echo ""
cargo build --no-default-features --features=get-bank-name-by-card-number
@ ls -sh target/debug/*.rlib
extract-card-number:
@ echo ""
cargo build --no-default-features --features=extract-card-number
@ ls -sh target/debug/*.rlib
get-place-by-iran-national-id:
@ echo ""
cargo build --no-default-features --features=get-place-by-iran-national-id
@ ls -sh target/debug/*.rlib
half-space:
@ echo ""
cargo build --no-default-features --features=half-space
@ ls -sh target/debug/*.rlib
legal-id:
@ echo ""
cargo build --no-default-features --features=legal-id
words-to-number:
@ echo ""
cargo build --no-default-features --features=words-to-number
@ ls -sh target/debug/*.rlib
sheba:
@ echo ""
cargo build --no-default-features --features=sheba
@ ls -sh target/debug/*.rlib
time-diff:
@ echo ""
cargo build --no-default-features --features=time-diff
@ ls -sh target/debug/*.rlib