[package]
edition = "2024"
rust-version = "1.88"
name = "mf2-resource"
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 W3C Message Resource container for MessageFormat 2: parser, serializer and data model, generic over the message type (no_std)."
homepage = "https://evancarroll.github.io/rust-mf2/"
documentation = "https://docs.rs/mf2-resource"
readme = "README.md"
keywords = [
"messageformat",
"mf2",
"i18n",
"resource",
"parser",
]
categories = [
"internationalization",
"localization",
"parser-implementations",
"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"]
[lib]
name = "mf2_resource"
path = "src/lib.rs"
[[test]]
name = "generated"
path = "tests/generated.rs"
[[test]]
name = "grammar"
path = "tests/grammar.rs"
[[test]]
name = "json"
path = "tests/json.rs"
[dependencies.mf2-model]
version = "=2.0.0"
[dependencies.serde]
version = "1.0.229"
features = [
"derive",
"alloc",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2.0.20"
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"