[package]
edition = "2024"
rust-version = "1.88"
name = "mf2-syntax"
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 = "MessageFormat 2 syntax: a lossless-CST parser with recovery, lowering to the data model, validation, serializer and analysis (no_std)."
homepage = "https://evancarroll.github.io/rust-mf2/"
documentation = "https://docs.rs/mf2-syntax"
readme = "README.md"
keywords = [
"messageformat",
"mf2",
"i18n",
"parser",
]
categories = [
"internationalization",
"localization",
"parser-implementations",
"no-std",
]
license = "MIT"
repository = "https://github.com/EvanCarroll/rust-mf2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[lib]
name = "mf2_syntax"
path = "src/lib.rs"
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "cst"
path = "tests/cst.rs"
[[test]]
name = "linear"
path = "tests/linear.rs"
[[test]]
name = "model"
path = "tests/model.rs"
[[test]]
name = "serialize"
path = "tests/serialize.rs"
[[test]]
name = "validate"
path = "tests/validate.rs"
[dependencies.mf2-model]
version = "=2.0.0"
[dependencies.thiserror]
version = "2.0.20"
default-features = false
[dependencies.unicode-normalization]
version = "0.1.25"
default-features = false
[dev-dependencies.mf2-model]
version = "=2.0.0"
features = ["suite-names"]
[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"