locode 0.2.0

Standardized country and city codes
Documentation
[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