Skip to content

Commit 727f1e2

Browse files
authored
Bump version 0.2.1 -> 0.2.2 (#18)
1 parent 7b91c0e commit 727f1e2

File tree

6 files changed

+23
-13
lines changed

6 files changed

+23
-13
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# CHANGELOG
22

3+
# [# 0.2.2 (2020-12-16)](https://github.com/boa-dev/ryu-js/compare/v0.2.1...v0.2.2)
4+
5+
Internal improvements:
6+
7+
- [INTERNAL #17](https://github.com/boa-dev/ryu-js/pull/17) Sync to `dtolnay/ryu` master
8+
- [INTERNAL #16](https://github.com/boa-dev/ryu-js/pull/16) Sync to `dtolnay/ryu` master
9+
310
# [# 0.2.1 (2020-11-11)](https://github.com/boa-dev/ryu-js/compare/v0.2.0...v0.2.1)
411

512
Feature enhancements:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ryu-js"
3-
version = "0.2.1" # don't forget to update html_root_url
3+
version = "0.2.2" # don't forget to update html_root_url
44
authors = ["David Tolnay <dtolnay@gmail.com>", "boa-dev"]
55
license = "Apache-2.0 OR BSL-1.0"
66
description = "Fast floating point to string conversion, ECMAScript compliant."

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Ryū-js
22

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

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

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

4341
<br>
4442

43+
## Performance
44+
45+
<!--
46+
4547
## Performance (lower is better)
4648
4749
![performance](https://raw.githubusercontent.com/boa-dev/ryu-js/master/performance.png)
4850
51+
-->
52+
4953
You can run upstream's benchmarks with:
5054

5155
```console

benches/bench.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ macro_rules! benches {
5151
}
5252

5353
benches! {
54-
bench_0_f64(0f64),
55-
bench_short_f64(0.1234f64),
56-
bench_e_f64(2.718281828459045f64),
54+
bench_0_f64(0_f64),
55+
bench_short_f64(0.1234_f64),
56+
bench_e_f64(2.718281828459045_f64),
5757
bench_max_f64(f64::MAX),
58-
bench_0_f32(0f32),
59-
bench_short_f32(0.1234f32),
60-
bench_e_f32(2.718281828459045f32),
58+
bench_0_f32(0_f32),
59+
bench_short_f32(0.1234_f32),
60+
bench_e_f32(2.718281828459045_f32),
6161
bench_max_f32(f32::MAX),
6262
}

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
//! }
2222
//! ```
2323
//!
24-
//! ## Performance (lower is better)
25-
//!
26-
//! ![performance](https://raw.githubusercontent.com/boa-dev/ryu-js/master/performance.png)
24+
//! ## Performance
2725
//!
2826
//! The benchmarks measure the average time to print a 32-bit float and average
2927
//! time to print a 64-bit float, where the inputs are distributed as uniform random
@@ -57,7 +55,7 @@
5755
//! notation.
5856
5957
#![no_std]
60-
#![doc(html_root_url = "https://docs.rs/ryu-js/0.2.1")]
58+
#![doc(html_root_url = "https://docs.rs/ryu-js/0.2.2")]
6159
#![allow(
6260
clippy::cast_lossless,
6361
clippy::cast_possible_truncation,

tests/d2s_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#![allow(
2222
clippy::approx_constant,
23+
clippy::excessive_precision,
2324
clippy::cast_lossless,
2425
clippy::float_cmp,
2526
clippy::int_plus_one,

0 commit comments

Comments
 (0)