diff --git a/CHANGELOG.md b/CHANGELOG.md index 035dd02a..6987d52e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Enhancements ------------ * `rhai-repl` tool has a few more commands, such as `strict` to turn on/off _Strict Variables Mode_ and `optimize` to turn on/off script optimization. +* Default features for dependencies (such as `ahash/std` and `num-traits/std`) are no longer required. Version 1.4.1 diff --git a/Cargo.toml b/Cargo.toml index 006c67bf..81d16837 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ rhai_codegen = { version = "1.2", path = "codegen", default-features = false } serde_bytes = "0.11" [features] -default = ["ahash/std", "num-traits/std"] +default = [] unchecked = [] # unchecked arithmetic sync = [] # restrict to only types that implement Send + Sync no_position = [] # do not track position in the parser diff --git a/src/ast/expr.rs b/src/ast/expr.rs index 3edfddc6..d2256c5b 100644 --- a/src/ast/expr.rs +++ b/src/ast/expr.rs @@ -21,7 +21,7 @@ use std::{ use std::str::FromStr; #[cfg(not(feature = "no_float"))] -use num_traits::Float; +use num_traits::float::FloatCore as Float; /// _(internals)_ A binary expression. /// Exported under the `internals` feature only.