Move FastFloat to separate crate (archival)

This commit is contained in:
2021-03-23 19:36:33 +01:00
parent 4ae5c02bb1
commit ce2e8f17ec
5 changed files with 136 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
//! The Float type used throughout the ecosystem
#![no_std]
#![cfg_attr(feature = "fast-float", feature(core_intrinsics))]
#![forbid(unsafe_code)]
/// Type used for floats, configure with the `f32` feature
#[cfg(feature = "f32")]
@@ -16,8 +16,3 @@ pub mod consts {
#[cfg(not(feature = "f32"))]
pub use core::f64::consts::*;
}
#[cfg(feature = "fast-float")]
mod fastfloat;
#[cfg(feature = "fast-float")]
pub use fastfloat::FastFloat;