Adding rust_decimal library as a dependency

If you have cargo-edit installed, run this command in a terminal, in your project's directory:

cargo add rust_decimal

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

rust_decimal = "1.4.0"

The rust_decimal library will automatically available globally. Read the rust_decimal library documentation.

Back to the crate overview.