Add smartstring default feature.

This commit is contained in:
Stephen Chung
2021-03-29 13:40:33 +08:00
parent fc6c5ecd00
commit 07efdddba3
11 changed files with 63 additions and 16 deletions

View File

@@ -55,6 +55,10 @@ mod print_debug_functions {
#[cfg(not(feature = "no_float"))]
pub mod float_functions {
#[cfg(feature = "no_std")]
#[cfg(not(feature = "no_float"))]
use num_traits::Float;
#[rhai_fn(name = "print", name = "to_string")]
pub fn print_f64(number: f64) -> ImmutableString {
let abs = number.abs();