Update SmartString to work for no-std.

This commit is contained in:
Stephen Chung
2021-07-01 18:44:01 +08:00
parent 3e0fd33db4
commit f3541bae19
4 changed files with 5 additions and 18 deletions

View File

@@ -19,11 +19,11 @@ categories = ["no-std", "embedded", "wasm", "parser-implementations"]
smallvec = { version = "1.6", default-features = false, features = ["union"] }
ahash = { version = "0.7", default-features = false }
num-traits = { version = "0.2", default-features = false }
smartstring = { version = "0.2.6", default-features = false }
smartstring = { version = "0.2.7", default-features = false }
rhai_codegen = { version = ">=0.4.0", path = "codegen", default-features = false }
[features]
default = ["smartstring/std", "ahash/std", "num-traits/std"] # remove 'smartstring/std' when smartstring is updated to support no-std
default = ["ahash/std", "num-traits/std", "smartstring/std"]
unchecked = [] # unchecked arithmetic
sync = [] # restrict to only types that implement Send + Sync
no_position = [] # do not track position in the parser