rusty_money icon indicating copy to clipboard operation
rusty_money copied to clipboard

Money library for Rust

Results 36 rusty_money issues
Sort by recently updated
recently updated
newest added

Currently, `Formatter::money` does not include trailing zeros even if this results in less than `params.rounding` minor digits. Is this intentional? If it is, I would appreciate an option to format...

This is a PR to address #51. Feel free to close.

I am using this library to represent Money in the backend of a web-app. Sometimes I need to serialise and need to translate into another struct for that. Could we...

* Add benchmarks to track performance of common operations like find, from_str, round and mathematical operations. * Integrate them into CI to prevent perf regressions when making changes.

Move from TravisCI to Github Actions

Write more thorough documentation and example code for: * Formatter * Rounding * Locale / LocalFormat * Allocation

documentation
help wanted
good first issue

`ExchangeRate::convert` moves the `amount` parameter even though it doesn't need to. Changed this to an immutable reference to prevent unnecessary moves/clones in user code.

Fixed an issue with the `Exchange::set_rate` function which specified that the passed in reference for the `ExchangeRate` needs to have the same lifetime (`'a`) as the `Exchange` instance. This is...

Adding a simple #[derive(Hash)] will make the currencies hashable, so we can use then in a hashmap