From 1876a235a127d77e0fa0dc8f9b556a8acbaccb4a Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Wed, 21 Apr 2021 11:57:39 -0500 Subject: [PATCH] Increment versions for release. --- CHANGELOG | 4 ++++ Cargo.toml | 8 +++++++- lexical-core/CHANGELOG | 4 +++- lexical-core/Cargo.toml | 2 +- lexical-core/src/ftoa/grisu2.rs | 20 ++++++++++---------- 5 files changed, 25 insertions(+), 13 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index b5dd4b14..7d26dfed 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [4.2.1] 2021-04-21 +### Changed +- Updated cfg_if version. + ## [4.2.0] 2020-01-27 - Fixed bug in API with improper method order. diff --git a/Cargo.toml b/Cargo.toml index 6d07e258..edd524a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT/Apache-2.0" name = "lexical" readme = "README.md" repository = "https://github.com/Alexhuszagh/rust-lexical" -version = "4.2.0" +version = "4.2.1" build = "build.rs" exclude = [ "data/*", @@ -136,26 +136,32 @@ required-features = ["comprehensive_float_test"] [[bench]] name = "atof" +path = "benches/atof.rs" harness = false [[bench]] name = "atof_malicious" +path = "benches/atof_malicious.rs" harness = false [[bench]] name = "atof_real" +path = "benches/atof_real.rs" harness = false [[bench]] name = "atoi" +path = "benches/atoi.rs" harness = false [[bench]] name = "itoa" +path = "benches/itoa.rs" harness = false [[bench]] name = "ftoa" +path = "benches/ftoa.rs" harness = false [profile.dev] diff --git a/lexical-core/CHANGELOG b/lexical-core/CHANGELOG index 28a85606..30485f05 100644 --- a/lexical-core/CHANGELOG +++ b/lexical-core/CHANGELOG @@ -6,10 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +## [0.6.8] 2021-04-21 ### Changed - Patched an implementation of insert_many due to a security advisory which does not affect lexical. - Fixed build script for cross-compiling. - +- Updated cfg_if version. ## [0.6.7] 2020-01-27 ### Changed diff --git a/lexical-core/Cargo.toml b/lexical-core/Cargo.toml index f88453a3..0a89a9c1 100644 --- a/lexical-core/Cargo.toml +++ b/lexical-core/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT/Apache-2.0" name = "lexical-core" readme = "README.md" repository = "https://github.com/Alexhuszagh/rust-lexical/tree/master/lexical-core" -version = "0.6.7" +version = "0.6.8" build = "build.rs" exclude = [ "fuzz/*", diff --git a/lexical-core/src/ftoa/grisu2.rs b/lexical-core/src/ftoa/grisu2.rs index e1b79b3a..f2b379ca 100644 --- a/lexical-core/src/ftoa/grisu2.rs +++ b/lexical-core/src/ftoa/grisu2.rs @@ -58,7 +58,7 @@ use util::*; // CACHED POWERS -/// Find cached power of 10 from the exponent. +// Find cached power of 10 from the exponent. perftools_inline!{ fn cached_grisu_power(exp: i32, k: &mut i32) -> &'static ExtendedFloat80 @@ -208,7 +208,7 @@ const TENS: [u64; 20] = [ // FPCONV GRISU -/// Round digit to sane approximation. +// Round digit to sane approximation. perftools_inline!{ fn round_digit(digits: &mut [u8], ndigits: usize, delta: u64, mut rem: u64, kappa: u64, mant: u64) { @@ -410,10 +410,10 @@ fn fpconv_dtoa(d: f64, dest: &mut [u8]) -> usize // DECIMAL -/// Forward to double_decimal. -/// -/// `f` must be non-special (NaN or infinite), non-negative, -/// and non-zero. +// Forward to double_decimal. +// +// `f` must be non-special (NaN or infinite), non-negative, +// and non-zero. perftools_inline!{ pub(crate) fn float_decimal<'a>(f: f32, bytes: &'a mut [u8]) -> usize @@ -423,10 +423,10 @@ pub(crate) fn float_decimal<'a>(f: f32, bytes: &'a mut [u8]) // F64 -/// Optimized algorithm for decimal numbers. -/// -/// `d` must be non-special (NaN or infinite), non-negative, -/// and non-zero. +// Optimized algorithm for decimal numbers. +// +// `d` must be non-special (NaN or infinite), non-negative, +// and non-zero. perftools_inline!{ pub(crate) fn double_decimal<'a>(d: f64, bytes: &'a mut [u8]) -> usize