[package]
name = "iso4217-static"
authors.workspace = true
categories = ["finance", "localization", "no-std", "no-std::no-alloc"]
description = "Static ISO 4217 Data"
documentation = "https://docs.rs/iso4217-static"
edition.workspace = true
keywords = ["iso4217", "currency"]
license.workspace = true
readme = "README.md"
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[dependencies]
cfg-if = "1"
chrono.workspace = true
iso3166-static = { version = "0.4.0", default-features = false }
iso4217-macros.workspace = true
serde = { workspace = true, optional = true }
zerocopy = { version = "0.8.21", optional = true, default-features = false, features = [
    "derive",
] }

[dev-dependencies]
serde = { workspace = true, features = ["alloc", "derive"] }
serde_json = "1"

[build-dependencies]
iso4217-macros.workspace = true

[features]
default = ["serde"]
alloc = ["iso3166-static/alloc", "serde?/alloc", "zerocopy?/alloc"]
serde = ["dep:serde", "iso3166-static/serde"]
zerocopy = ["dep:zerocopy"]

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true
