[package]
edition = "2024"
rust-version = "1.88"
name = "mf2-model"
version = "2.0.0"
authors = ["Evan Carroll"]
build = false
exclude = ["package.txt"]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The Unicode MessageFormat 2 interchange data model, MsgId, the shared error kinds and the Frontend trait (no_std)."
homepage = "https://evancarroll.github.io/rust-mf2/"
documentation = "https://docs.rs/mf2-model"
readme = "README.md"
keywords = [
"messageformat",
"mf2",
"i18n",
"data-model",
]
categories = [
"internationalization",
"localization",
"data-structures",
"no-std",
]
license = "MIT"
repository = "https://github.com/EvanCarroll/rust-mf2"
[package.metadata.docs.rs]
features = ["serde"]
targets = ["x86_64-unknown-linux-gnu"]
[features]
serde = ["dep:serde"]
suite-names = []
[lib]
name = "mf2_model"
path = "src/lib.rs"
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "json"
path = "tests/json.rs"
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dev-dependencies.serde_json]
version = "1.0.151"
[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
too_many_lines = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "allow"
unreachable_pub = "warn"
unsafe_code = "deny"