-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (57 loc) · 1.92 KB
/
Cargo.toml
File metadata and controls
77 lines (57 loc) · 1.92 KB
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
[package]
name = "locode"
version = "0.2.0"
edition = "2021"
rust-version = "1.70.0"
# Publication metadata
authors = ["Hantong Chen <cxwdyx620@gmail.com>"]
description = "Standardized country and city codes"
keywords = ["iso3166", "iata"]
license = "Unlicense"
readme = "README.md"
repository = "https://github.com/hanyu-dev/locode"
[dependencies]
foldhash = { version = "0.2.0", optional = true }
[features]
default = ["feat-iso3166", "feat-iata-city"]
# Enables alloc support (internal)
_feat_alloc = []
# Enables std support (internal)
_feat_std = ["_feat_alloc"]
# Enables ISO 3166-1 country codes
feat-iso3166 = []
# Enables ISO 3166-1 country codes, with function: `short_name_en`
feat-iso3166-short-name-en = ["feat-iso3166"]
# Enables ISO 3166-1 country codes, with function: `short_name_uppercase_en`
feat-iso3166-short-name-uppercase-en = ["feat-iso3166"]
# Enables ISO 3166-1 country codes, with function: `full_name_en`
feat-iso3166-full-name-en = ["feat-iso3166"]
# Enables ISO 3166-1 country codes, with function: `short_name_zh`
feat-iso3166-short-name-zh = ["feat-iso3166"]
# Enables IATA city codes
feat-iata-city = []
# Enables IATA city codes, with function: `from_code`
feat-iata-city-from-code = ["feat-iata-city", "dep:foldhash", "_feat_std"]
# Enables IATA city codes, with function: `time_zone`
feat-iata-city-time-zone = ["feat-iata-city"]
# Enables IATA city codes, with function: `country` .
feat-iata-city-country = ["feat-iata-city"]
# Enables IATA city codes, with function: `name`
feat-iata-city-name = ["feat-iata-city"]
# Build codes from CSV files instead of hardcoded values
feat-build-fresh = ["_dev_build_fresh"]
# Build codes from CSV files (internal)
_dev_build_fresh = []
[build-dependencies]
csv = "1.4"
serde = "1.0"
serde_derive = "1.0"
[profile.dev]
debug = false # for faster rust-analyzer
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
incremental = false
panic = "abort"
strip = true