[package]
edition = "2024"
rust-version = "1.88"
name = "mf2-runtime"
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 MessageFormat 2 evaluator of Rust MF2: formats from a .mf2b catalog (no_std, fmt-free, panic-free): resolution, selection, fallback, bidi, parts, markup, the registry and the core functions."
homepage = "https://evancarroll.github.io/rust-mf2/"
documentation = "https://docs.rs/mf2-runtime"
readme = "README.md"
keywords = [
"messageformat",
"mf2",
"i18n",
"l10n",
"formatting",
]
categories = [
"internationalization",
"localization",
"value-formatting",
"no-std",
"wasm",
]
license = "MIT"
repository = "https://github.com/EvanCarroll/rust-mf2"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[features]
fixed-decimal = ["dep:fixed_decimal"]
intl = []
[lib]
name = "mf2_runtime"
path = "src/lib.rs"
[[test]]
name = "additions"
path = "tests/additions.rs"
[[test]]
name = "format"
path = "tests/format.rs"
[dependencies.fixed_decimal]
version = "0.7.2"
optional = true
default-features = false
[dependencies.mf2-catalog]
version = "=2.0.0"
[dependencies.mf2-model]
version = "=2.0.0"
[dependencies.thiserror]
version = "2.0.20"
default-features = false
[dev-dependencies.mf2-catalog]
version = "=2.0.0"
features = [
"writer",
"decode",
]
[dev-dependencies.mf2-syntax]
version = "=2.0.0"
[dev-dependencies.ryu]
version = "1.0.23"
[dev-dependencies.unicode-normalization]
version = "0.1.25"
features = ["std"]
default-features = false
[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"