Email me

Crate features / rust_decimal

Feature flags · rust_decimal 1.43.0 · from crates.io 2026-10-24

rust_decimal features: what each one does, and the line to copy

Short answerrust_decimal 1.43.0 has 31 features. By default it turns on serde, std; add default-features = false to start from nothing. It needs Rust 1.67.1 or newer.

Pick features

1.43.0latest version
31features
14optional dependencies
1.67.1MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
align16nothing else (a switch the code checks)
borshdep:borsh, std
bytemuckc-repr, dep:bytemuck, dep:bytemuck_derive
c-reprnothing else (a switch the code checks)
db-diesel-mysqldiesel/mysql_backend, std
db-diesel-postgresdiesel/postgres_backend, std
db-diesel2-mysqldb-diesel-mysql
db-diesel2-postgresdb-diesel-postgres
db-postgresdep:bytes, dep:postgres-types, std
db-tokio-postgresdep:bytes, dep:postgres-types, std
legacy-opsnothing else (a switch the code checks)
macrosdep:rust_decimal_macros
mathsnothing else (a switch the code checks)
maths-nopanicmaths
ndarraydep:ndarray
proptestdep:proptest
randdep:rand
rand-0_9dep:rand-0_9
rocket-traitsdep:rocket, std
rust-fuzzdep:arbitrary
serdeyesdep:serde, wasm-bindgen?/serde
serde-arbitrary-precisionserde-with-arbitrary-precision
serde-bincodeserde-str
serde-floatserde-with-float
serde-strserde-with-str
serde-with-arbitrary-precisionserde, serde_json/arbitrary_precision, serde_json/std, zmij
serde-with-floatserde
serde-with-strserde
stdyesarrayvec/std, wasm-bindgen?/std, borsh?/std, bytes?/std, rand?/std, rand-0_9?/std, serde?/std, serde_json?/std
tokio-pgdb-tokio-postgres
wasmdep:wasm-bindgen

dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).

MSRV history

The minimum Rust version rust_decimal declares (rust-version), and the release that changed it:

  • 1.27.0 (2022-11-24): Rust 1.60
  • 1.37.0 (2025-03-17): Rust 1.67.1

Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p rust_decimal --precise <version>, or use resolver 3, which picks compatible versions for you.

More on rust_decimal

docs.rs feature list · crates.io · license MIT · edition 2021

Up next

Next crateFeature flags for every popular crateRead it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ