Remove need for default features in dependencies.

This commit is contained in:
Stephen Chung 2022-01-27 08:22:20 +08:00
parent c79f1e44e4
commit 69dab31617
3 changed files with 3 additions and 2 deletions

View File

@ -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. * `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 Version 1.4.1

View File

@ -26,7 +26,7 @@ rhai_codegen = { version = "1.2", path = "codegen", default-features = false }
serde_bytes = "0.11" serde_bytes = "0.11"
[features] [features]
default = ["ahash/std", "num-traits/std"] default = []
unchecked = [] # unchecked arithmetic unchecked = [] # unchecked arithmetic
sync = [] # restrict to only types that implement Send + Sync sync = [] # restrict to only types that implement Send + Sync
no_position = [] # do not track position in the parser no_position = [] # do not track position in the parser

View File

@ -21,7 +21,7 @@ use std::{
use std::str::FromStr; use std::str::FromStr;
#[cfg(not(feature = "no_float"))] #[cfg(not(feature = "no_float"))]
use num_traits::Float; use num_traits::float::FloatCore as Float;
/// _(internals)_ A binary expression. /// _(internals)_ A binary expression.
/// Exported under the `internals` feature only. /// Exported under the `internals` feature only.