[package]
edition = "2021"
rust-version = "1.82"
name = "fixed_decimal"
version = "0.7.2"
authors = ["The ICU4X Project Developers"]
build = false
include = [
"data/**/*",
"src/**/*",
"examples/**/*",
"benches/**/*",
"tests/**/*",
"Cargo.toml",
"LICENSE",
"README.md",
"build.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An API for representing numbers in a human-readable form"
readme = "README.md"
keywords = [
"decimals",
"numbers",
]
categories = [
"internationalization",
"localization",
"no-std",
"embedded",
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"
[package.metadata.workspaces]
independent = true
[package.metadata.docs.rs]
all-features = true
[features]
ryu = ["dep:ryu"]
[lib]
name = "fixed_decimal"
path = "src/lib.rs"
bench = false
[[example]]
name = "permyriad"
path = "examples/permyriad.rs"
[[test]]
name = "rounding"
path = "tests/rounding.rs"
[[test]]
name = "signed_rounding"
path = "tests/signed_rounding.rs"
[[bench]]
name = "fixed_decimal"
path = "benches/fixed_decimal.rs"
harness = false
[dependencies.displaydoc]
version = "0.2.3"
default-features = false
[dependencies.ryu]
version = "1.0.5"
features = ["small"]
optional = true
default-features = false
[dependencies.smallvec]
version = "1.10.0"
features = ["const_new"]
default-features = false
[dependencies.writeable]
version = "0.6.1"
features = ["alloc"]
default-features = false
[dev-dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]
[dev-dependencies.rand]
version = "0.9"
[dev-dependencies.rand_distr]
version = "0.5"
[dev-dependencies.rand_pcg]
version = "0.9"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.criterion]
version = "0.5.0"
[lints.clippy]
alloc-instead-of-core = "warn"
branches-sharing-code = "warn"
collection_is_never_read = "warn"
crosspointer_transmute = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
doc_markdown = "warn"
exhaustive_enums = "deny"
exhaustive_structs = "deny"
fn_to_numeric_cast_any = "warn"
infinite_loop = "warn"
large_stack_arrays = "warn"
mismatching_type_param_order = "warn"
missing_fields_in_debug = "warn"
missing_transmute_annotations = "warn"
negative_feature_names = "warn"
or-fun-call = "warn"
same_functions_in_if_condition = "warn"
todo = "warn"
transmute_bytes_to_str = "warn"
transmute_int_to_bool = "warn"
transmute_int_to_non_zero = "warn"
transmute_ptr_to_ptr = "warn"
transmute_ptr_to_ref = "warn"
transmute_undefined_repr = "warn"
transmutes_expressible_as_ptr_casts = "warn"
trivially_copy_pass_by_ref = "deny"
unnecessary-wraps = "warn"
useless_transmute = "warn"
wildcard_dependencies = "warn"
[lints.rust]
missing_debug_implementations = "deny"
trivial_numeric_casts = "deny"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(icu4c_enable_renaming)",
"cfg(needs_alloc_error_handler)",
"cfg(icu4x_run_size_tests)",
"cfg(icu4x_unstable_fast_trie_only)",
]