-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
49 lines (42 loc) · 1.73 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
[package]
name = "fqdn"
version = "0.4.5"
authors = ["Xophe <[email protected]>"]
edition = "2021"
license = "MIT"
description = "FQDN (Fully Qualified Domain Name)"
repository = "https://github.com/Orange-OpenSource/fqdn"
documentation = "https://docs.rs/fqdn"
keywords = ["fqdn","dns"]
categories = ["data-structures"]
[dependencies]
# Activate punycode conversion (RFC3492 Punycode).
punycode = { version = "0.4.1", optional = true }
# Activate (de)serialization mechanism
serde = { version = "1.0.215", features = ["std"], optional = true }
[dev-dependencies]
serde_json = "1.0.133"
postcard = { version = "1.1.1", features = [ "use-std" ] }
serde = { version = "1.0", features = ["derive"] }
[features]
# By default, this crate allows also underscores ('_') in FQDN
# and has greater length limits than the RFC allows but
# domain labels can’t start or end with hyphens
default = [ "domain-label-cannot-start-or-end-with-hyphen" ]
# Activate all the features to conform to all RFC
# RFC1035 accepts only digits, letters and '-' in FQDN, labels are 1 to 63 chars long,
# max length of FQDN including null label is 255 chars (i.e. 253 visible chars)
# RFC952: labels cannot start or end with hyphens
# RFC1123: labels can start with numbers (so there is no limitation about digit positions)
strict-rfc = [
"domain-label-length-limited-to-63",
"domain-name-length-limited-to-255",
"domain-name-without-special-chars",
"domain-name-should-have-trailing-dot",
"domain-label-cannot-start-or-end-with-hyphen"
]
domain-name-length-limited-to-255 = []
domain-label-length-limited-to-63 = []
domain-name-without-special-chars = []
domain-name-should-have-trailing-dot = []
domain-label-cannot-start-or-end-with-hyphen = []