Skip to content

Commit

Permalink
Update version.md for release
Browse files Browse the repository at this point in the history
  • Loading branch information
paupino committed Jul 28, 2021
1 parent 76f1c91 commit 3a1dce3
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
name = "rust_decimal"
readme = "./README.md"
repository = "https://github.com/paupino/rust-decimal"
version = "1.14.3"
version = "1.15.0"
exclude = [ "tests/generated/*" ]

[package.metadata.docs.rs]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -17,8 +17,8 @@ To get started, add `rust_decimal` and optionally `rust_decimal_macros` to your

```toml
[dependencies]
rust_decimal = "1.14"
rust_decimal_macros = "1.14"
rust_decimal = "1.15"
rust_decimal_macros = "1.15"
```

## Usage
Expand Down
18 changes: 17 additions & 1 deletion VERSION.md
@@ -1,8 +1,24 @@
# Version History

## 1.15.0

A minor bug and feature release which adds a couple of new functions as well as cleans up some documentation:

* Support for serializing to float without converting to float via the `serde-arbitrary-precision` feature.
[#402](https://github.com/paupino/rust-decimal/issues/402). Thanks [@JamesHinshelwood](https://github.com/JamesHinshelwood)!
for finding and fixing this!
* Add `log10` support to the `maths` feature. [#397](https://github.com/paupino/rust-decimal/issues/397).
* Added further constants to the `Decimal` library including `TWO`, `TEN`, `ONE_HUNDRED`, `ONE_THOUSAND`, and `NEGATIVE_ONE`.
[#400](https://github.com/paupino/rust-decimal/issues/400).
* Fixes serialization issue for `-0` whereby `-` would be output [#406](https://github.com/paupino/rust-decimal/pull/406). Thanks
[@edwardycl](https://github.com/edwardycl)!
* Fixes float rounding before return in `to_f64`. [#401](https://github.com/paupino/rust-decimal/issues/401).
* Added `BUILD.md` file to help people get set up with Rust Decimal locally and cleaned up some
documentation examples.

## 1.14.3

Fixes an issue[#398](https://github.com/paupino/rust-decimal/issues/398) where `Decimal::ZERO.ln()` would panic rather than returning `Decimal::ZERO`. This
Fixes an issue [#398](https://github.com/paupino/rust-decimal/issues/398) where `Decimal::ZERO.ln()` would panic rather than returning `Decimal::ZERO`. This
aligns the behavior with calling `ln` on negative decimals.

Thank you to [@SebRollen](https://github.com/SebRollen) for finding and fixing this.
Expand Down
4 changes: 2 additions & 2 deletions macros/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rust_decimal_macros"
version = "1.14.3"
version = "1.15.0"
authors = ["Paul Mason <paul@form1.co.nz>"]
edition = "2018"
description = "Shorthand macros to assist creating Decimal types."
Expand All @@ -12,7 +12,7 @@ categories = ["science","data-structures"]
license = "MIT"

[dependencies]
rust_decimal = { path = "..", version = "1.14.3" }
rust_decimal = { path = "..", version = "1.15.0" }
quote = "1.0"

[features]
Expand Down
30 changes: 17 additions & 13 deletions src/lib.rs
Expand Up @@ -15,8 +15,8 @@
//!
//! ```toml
//! [dependencies]
//! rust_decimal = "1.14"
//! rust_decimal_macros = "1.14"
//! rust_decimal = "1.15"
//! rust_decimal_macros = "1.15"
//! ```
//!
//! ## Usage
Expand Down Expand Up @@ -85,39 +85,39 @@
//! * [serde-arbitrary-precision](#serde-arbitrary-precision)
//! * [std](#std)
//!
//! ## `c-repr`
//! ### `c-repr`
//!
//! Forces `Decimal` to use `[repr(C)]`. The corresponding target layout is 128 bit aligned.
//!
//! ## `db-postgres`
//! ### `db-postgres`
//!
//! This feature enables a PostgreSQL communication module. It allows for reading and writing the `Decimal`
//! type by transparently serializing/deserializing into the `NUMERIC` data type within PostgreSQL.
//!
//! ## `db-tokio-postgres`
//! ### `db-tokio-postgres`
//!
//! Enables the tokio postgres module allowing for async communication with PostgreSQL.
//!
//! ## `db-diesel-postgres`
//! ### `db-diesel-postgres`
//!
//! Enable `diesel` PostgreSQL support.
//!
//! ## `legacy-ops`
//! ### `legacy-ops`
//!
//! As of `1.10` the algorithms used to perform basic operations have changed which has benefits of significant speed improvements.
//! To maintain backwards compatibility this can be opted out of by enabling the `legacy-ops` feature.
//!
//! ## `maths`
//! ### `maths`
//!
//! The `maths` feature enables additional complex mathematical functions such as `pow`, `ln`, `enf`, `exp` etc.
//! Documentation detailing the additional functions can be found on the
//! [`MathematicalOps`](https://docs.rs/rust_decimal/latest/rust_decimal/trait.MathematicalOps.html) trait.
//!
//! ## `rust-fuzz`
//! ### `rust-fuzz`
//!
//! Enable `rust-fuzz` support by implementing the `Arbitrary` trait.
//!
//! ## `serde-float`
//! ### `serde-float`
//!
//! Enable this so that JSON serialization of `Decimal` types are sent as a float instead of a string (default).
//!
Expand All @@ -128,7 +128,7 @@
//! }
//! ```
//!
//! ## `serde-str`
//! ### `serde-str`
//!
//! This is typically useful for `bincode` or `csv` like implementations.
//!
Expand All @@ -140,18 +140,22 @@
//! converting to `f64` _loses_ precision, it's highly recommended that you do NOT enable this feature when working with
//! `bincode`. That being said, this will only use 8 bytes so is slightly more efficient in terms of storage size.
//!
//! ## `serde-arbitrary-precision`
//! ### `serde-arbitrary-precision`
//!
//! This is used primarily with `serde_json` and consequently adds it as a "weak dependency". This supports the
//! `arbitrary_precision` feature inside `serde_json` when parsing decimals.
//!
//! This is recommended when parsing "float" looking data as it will prevent data loss.
//!
//! ## `std`
//! ### `std`
//!
//! Enable `std` library support. This is enabled by default, however in the future will be opt in. For now, to support `no_std`
//! libraries, this crate can be compiled with `--no-default-features`.
//!
//! ## Building
//!
//! Please refer to the [Build document](BUILD.md) for more information on building and testing Rust Decimal.
//!
#![forbid(unsafe_code)]
#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
Expand Down

0 comments on commit 3a1dce3

Please sign in to comment.