-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
96 lines (89 loc) · 2.61 KB
/
Cargo.toml
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
[package]
name = "rust-persian-tools"
version = "1.1.4"
edition = "2021"
description = "Official Rust implementation of Persian Tools"
license = "MIT"
readme = "README.md"
# documentation = "https://docs.rs/rust-persian-tools" # if not set docs.rs will generate one and put it in place
homepage = "https://crates.io/crates/rust-persian-tools"
repository = "https://github.com/persian-tools/rust-persian-tools"
categories = [
"localization",
"text-processing",
"internationalization",
"development-tools",
"rust-patterns",
]
keywords = ["iran", "persian", "farsi", "tools", "text-processing"]
include = [
"src/**/*.rs",
"Cargo.toml",
"LICENSE",
"README.md",
"Contributing.md",
"logo.png",
]
[dependencies]
urlencoding = { version = "2.1.3", optional = true }
serde = { version = "1.0.199", features = ["derive"], optional = true }
thiserror = { version = "2.0.0", optional = true }
num = { version = "0.4", optional = true }
num-derive = { version = "0.4", optional = true }
num-traits = { version = "0.2", optional = true }
chrono = { version = "0.4.38", optional = true }
# Edit `Makefile` and `src/lib.src` after making changes in this section:
[features]
full = [
"add-ordinal-suffix",
"commas",
"digits",
"find-capital-by-province",
"persian-chars",
"arabic-chars",
"national-id",
"remove-ordinal-suffix",
"url-fix",
"verity-card-number",
"number-plate",
"phone-number",
"bill",
"number-to-words",
"get-bank-name-by-card-number",
"extract-card-number",
"time-diff",
"get-place-by-iran-national-id",
"half-space",
"legal-id",
"words-to-number",
"sheba",
] # For now, by default we enable all features:
default = ["full"]
add-ordinal-suffix = []
commas = []
digits = []
find-capital-by-province = ["persian-chars"]
persian-chars = []
arabic-chars = []
national-id = ["dep:thiserror"]
remove-ordinal-suffix = []
url-fix = ["dep:urlencoding"]
number-plate = []
phone-number = ["dep:thiserror"]
verity-card-number = ["dep:thiserror"]
serde = ["dep:serde"]
bill = ["dep:num", "dep:num-derive", "dep:num-traits", "dep:thiserror"]
number-to-words = ["dep:thiserror", "commas"]
get-bank-name-by-card-number = ["dep:thiserror"]
extract-card-number = []
time-diff = ["dep:thiserror", "dep:chrono", "digits"]
get-place-by-iran-national-id = ["dep:thiserror"]
half-space = []
legal-id = ["dep:thiserror"]
words-to-number = ["dep:thiserror", "commas", "digits", "remove-ordinal-suffix"]
sheba = ["dep:thiserror"]
[package.metadata.docs.rs]
all-features = true
[dev-dependencies]
# To test `serde` feature expectaions:
serde_json = "1.0.116"