From 67efda988c1f6679a8b009c2983f0805c6f232aa Mon Sep 17 00:00:00 2001 From: Paul Mason Date: Sat, 29 Jul 2023 16:38:31 -0700 Subject: [PATCH] Version 1.31.0 (#601) --- .buildnumber | 2 +- CHANGELOG.md | 14 ++++++++++++++ Cargo.toml | 18 +++++++++--------- README.md | 4 ++-- fuzz/Cargo.toml | 2 +- macros/Cargo.toml | 4 ++-- 6 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.buildnumber b/.buildnumber index 5a95707..78624c4 100644 --- a/.buildnumber +++ b/.buildnumber @@ -1,3 +1,3 @@ 1 -30 +31 0 diff --git a/CHANGELOG.md b/CHANGELOG.md index c13612b..62c9484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Version History +## 1.31.0 + +### Fixed + +* Fixes an issue with `trunc_with_scale` implicitly rounding in some scenarios ([#600](https://github.com/paupino/rust-decimal/pull/600)) + +### Changed + +* Various dependency features were updated. + +### Credit + +Thank you to [@mkatychev](https://github.com/mkatychev) for your contribution this release. + ## 1.30.0 As the minor releases for Rust Decimal are getting smaller, I'll be looking at formally starting version 2 of the diff --git a/Cargo.toml b/Cargo.toml index b6a01c5..4c2ff87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,8 +1,3 @@ -[[bench]] -harness = false -name = "comparison" -path = "benches/comparison.rs" - [package] authors = ["Paul Mason "] build = "build.rs" @@ -17,7 +12,7 @@ name = "rust_decimal" readme = "./README.md" repository = "https://github.com/paupino/rust-decimal" rust-version = "1.60" -version = "1.30.0" +version = "1.31.0" [package.metadata.docs.rs] all-features = true @@ -29,14 +24,14 @@ borsh = { default-features = false, optional = true, version = "0.10.0" } byteorder = { default-features = false, optional = true, version = "1.0" } bytes = { default-features = false, optional = true, version = "1.0" } diesel1 = { default-features = false, optional = true, package = "diesel", version = "1.0" } -diesel2 = { default-features = false, optional = true, package = "diesel", version = "2.0" } +diesel2 = { default-features = false, optional = true, package = "diesel", version = "2.1" } ndarray = { default-features = false, optional = true, version = "0.15.6" } num-traits = { default-features = false, features = ["i128"], version = "0.2" } postgres = { default-features = false, optional = true, version = "0.19" } proptest = { default-features = false, optional = true, features = ["std"], version = "1.0" } rand = { default-features = false, optional = true, version = "0.8" } rkyv = { default-features = false, features = ["size_32", "std"], optional = true, version = "0.7.42" } -rocket = { default-features = false, optional = true, version = "0.5.0-rc.1" } +rocket = { default-features = false, optional = true, version = "0.5.0-rc.3" } serde = { default-features = false, optional = true, version = "1.0" } serde_json = { default-features = false, optional = true, version = "1.0" } tokio-postgres = { default-features = false, optional = true, version = "0.7" } @@ -44,7 +39,7 @@ tokio-postgres = { default-features = false, optional = true, version = "0.7" } [dev-dependencies] bincode = { default-features = false, version = "1.0" } bytes = { default-features = false, version = "1.0" } -criterion = { default-features = false, version = "0.4.0" } +criterion = { default-features = false, version = "0.5" } csv = "1" futures = { default-features = false, version = "0.3" } rand = { default-features = false, features = ["getrandom"], version = "0.8" } @@ -88,5 +83,10 @@ serde-with-str = ["serde"] std = ["arrayvec/std", "borsh?/std", "byteorder?/std", "bytes?/std", "rand?/std", "rkyv?/std", "serde?/std", "serde_json?/std"] tokio-pg = ["db-tokio-postgres"] # Backwards compatability +[[bench]] +harness = false +name = "comparison" +path = "benches/comparison.rs" + [workspace] members = [".", "./macros"] diff --git a/README.md b/README.md index d11a866..660ffc4 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ Alternatively, you can edit your `Cargo.toml` directly and run `cargo update`: ```toml [dependencies] -rust_decimal = "1.30" -rust_decimal_macros = "1.30" +rust_decimal = "1.31" +rust_decimal_macros = "1.31" ``` ## Usage diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index c0330c9..d3e37a0 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -21,7 +21,7 @@ authors = ["Automatically generated"] edition = "2021" name = "rust-decimal-fuzz" publish = false -version = "1.30.0" +version = "1.31.0" [package.metadata] cargo-fuzz = true diff --git a/macros/Cargo.toml b/macros/Cargo.toml index c71654b..03d5d7b 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_decimal_macros" -version = "1.30.0" +version = "1.31.0" authors = ["Paul Mason "] edition = "2021" description = "Shorthand macros to assist creating Decimal types." @@ -12,7 +12,7 @@ categories = ["science","data-structures"] license = "MIT" [dependencies] -rust_decimal = { path = "..", version = "1.29", default-features = false } +rust_decimal = { path = "..", default-features = false } quote = "1.0" [dev-dependencies]