Skip to content

Commit

Permalink
Bump version 0.2.1 -> 0.2.2 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Dec 16, 2021
1 parent 7b91c0e commit 727f1e2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

# [# 0.2.2 (2020-12-16)](https://github.com/boa-dev/ryu-js/compare/v0.2.1...v0.2.2)

Internal improvements:

- [INTERNAL #17](https://github.com/boa-dev/ryu-js/pull/17) Sync to `dtolnay/ryu` master
- [INTERNAL #16](https://github.com/boa-dev/ryu-js/pull/16) Sync to `dtolnay/ryu` master

# [# 0.2.1 (2020-11-11)](https://github.com/boa-dev/ryu-js/compare/v0.2.0...v0.2.1)

Feature enhancements:
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 = "ryu-js"
version = "0.2.1" # don't forget to update html_root_url
version = "0.2.2" # don't forget to update html_root_url
authors = ["David Tolnay <dtolnay@gmail.com>", "boa-dev"]
license = "Apache-2.0 OR BSL-1.0"
description = "Fast floating point to string conversion, ECMAScript compliant."
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Ryū-js

Ryū-js is a fork of the [ryu][ryu-crate] crate adjusted to comply to the ECMAScript [number-to-string][number-to-string] algorithm.
This crate is used in the [boa][boa-crate] crate for number to string conversions.

[ryu-crate]: https://crates.io/crates/ryu
[boa-crate]: https://crates.io/crates/Boa
[number-to-string]: https://tc39.es/ecma262/#sec-numeric-types-number-tostring

Pure Rust implementation of Ryū, an algorithm to quickly convert floating point
Expand Down Expand Up @@ -42,10 +40,16 @@ fn main() {

<br>

## Performance

<!--
## Performance (lower is better)
![performance](https://raw.githubusercontent.com/boa-dev/ryu-js/master/performance.png)
-->

You can run upstream's benchmarks with:

```console
Expand Down
12 changes: 6 additions & 6 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ macro_rules! benches {
}

benches! {
bench_0_f64(0f64),
bench_short_f64(0.1234f64),
bench_e_f64(2.718281828459045f64),
bench_0_f64(0_f64),
bench_short_f64(0.1234_f64),
bench_e_f64(2.718281828459045_f64),
bench_max_f64(f64::MAX),
bench_0_f32(0f32),
bench_short_f32(0.1234f32),
bench_e_f32(2.718281828459045f32),
bench_0_f32(0_f32),
bench_short_f32(0.1234_f32),
bench_e_f32(2.718281828459045_f32),
bench_max_f32(f32::MAX),
}
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
//! }
//! ```
//!
//! ## Performance (lower is better)
//!
//! ![performance](https://raw.githubusercontent.com/boa-dev/ryu-js/master/performance.png)
//! ## Performance
//!
//! The benchmarks measure the average time to print a 32-bit float and average
//! time to print a 64-bit float, where the inputs are distributed as uniform random
Expand Down Expand Up @@ -57,7 +55,7 @@
//! notation.

#![no_std]
#![doc(html_root_url = "https://docs.rs/ryu-js/0.2.1")]
#![doc(html_root_url = "https://docs.rs/ryu-js/0.2.2")]
#![allow(
clippy::cast_lossless,
clippy::cast_possible_truncation,
Expand Down
1 change: 1 addition & 0 deletions tests/d2s_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#![allow(
clippy::approx_constant,
clippy::excessive_precision,
clippy::cast_lossless,
clippy::float_cmp,
clippy::int_plus_one,
Expand Down

0 comments on commit 727f1e2

Please sign in to comment.