Skip to content

Commit

Permalink
Prepare for 0.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtribick committed Apr 6, 2023
1 parent a077932 commit eeb7ceb
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@v1
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: release

on:
release:
types: [published]

jobs:
publish:
name: Publish package
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Publish crate
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Changelog

## Version 0.7

* Support `no_std` builds. (Thanks: joseluis)

## Version 0.6.1

* Re-enable MinGW support via libm.

## Version 0.6

* Add const constructor `from_f64`.
* Add const constructor `from_f64`. (Thanks: joseluis)
* Breaking change: remove MinGW support due to incorrect `fma` implementation
* Breaking change: fix definition of no_overlap to match definition 1.4 in
Joldes et al. (2017).
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twofloat"
version = "0.6.1"
version = "0.7.0"
authors = ["Andrew Tribick"]

keywords = ["float", "precision", "numerics", "floating-point", "arithmetic"]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ addressed in future releases.

* `math_funcs` - include mathematical functions (enabled by default)
* `serde` - enable serialization/deserialization with Serde.
* `std` - use std mathematical functions instead of libm.

## Known issues

This library depends on the `std` implementations of the floating point
mathematical functions, which in turn depend on the C standard library
implementation, which may have variations between platforms.
* The MinGW `fma` implementation appears to give incorrect results in some
cases, so the libm implementation is always used on this platform.

## References

Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ possible through the Serde library.
## Known issues
This library depends on the `std` implementations of the floating point
mathematical functions, which in turn depend on the C standard library
implementation, which may have variations between platforms.
* The MinGW `fma` implementation appears to give incorrect results in some
cases, so the libm implementation is always used on this platform.
## References
Expand Down

0 comments on commit eeb7ceb

Please sign in to comment.