Patah smartstring for no-std.
This commit is contained in:
parent
e36e490a30
commit
ec7b906f71
@ -19,12 +19,11 @@ categories = ["no-std", "embedded", "wasm", "parser-implementations"]
|
|||||||
smallvec = { version = "1.6", default-features = false, features = ["union"] }
|
smallvec = { version = "1.6", default-features = false, features = ["union"] }
|
||||||
ahash = { version = "0.7", default-features = false }
|
ahash = { version = "0.7", default-features = false }
|
||||||
num-traits = { version = "0.2", default_features = false }
|
num-traits = { version = "0.2", default_features = false }
|
||||||
#smartstring = { version = "0.2.6" }
|
smartstring = { version = "0.2.6", default_features = false }
|
||||||
smartstring = { git = "https://github.com/okready/smartstring", branch = "fix-no_std-builds", default_features = false }
|
|
||||||
rhai_codegen = { version = "0.3.4", path = "codegen", features = ["metadata"] }
|
rhai_codegen = { version = "0.3.4", path = "codegen", features = ["metadata"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = ["smartstring/std"] # remove 'smartstring/std' when smartstring is updated to support no-std
|
||||||
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_optimize = [] # no script optimizer
|
no_optimize = [] # no script optimizer
|
||||||
@ -42,7 +41,6 @@ internals = [] # expose internal data structures
|
|||||||
unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for identifiers.
|
unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for identifiers.
|
||||||
metadata = ["serde_json"] # enable exporting functions metadata
|
metadata = ["serde_json"] # enable exporting functions metadata
|
||||||
|
|
||||||
no_smartstring = [] # set Identifier=ImmutableString
|
|
||||||
no_std = ["smallvec/union", "num-traits/libm", "core-error", "libm", "ahash/compile-time-rng"]
|
no_std = ["smallvec/union", "num-traits/libm", "core-error", "libm", "ahash/compile-time-rng"]
|
||||||
|
|
||||||
# compiling for WASM
|
# compiling for WASM
|
||||||
|
@ -12,7 +12,7 @@ homepage = "https://github.com/rhaiscript/rhai/tree/no_std/no_std_test"
|
|||||||
repository = "https://github.com/rhaiscript/rhai"
|
repository = "https://github.com/rhaiscript/rhai"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rhai = { path = "../../", features = [ "no_std" ] }
|
rhai = { path = "../../", features = [ "no_std" ], default_features = false }
|
||||||
wee_alloc = { version = "0.4.5", default_features = false }
|
wee_alloc = { version = "0.4.5", default_features = false }
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
@ -36,3 +36,7 @@ inherits = "release"
|
|||||||
[profile.macos]
|
[profile.macos]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
# Patch smartstring wth a PR fix because it doesn't properly handle no-std builds.
|
||||||
|
smartstring = { git = "https://github.com/okready/smartstring", branch = "fix-no_std-builds" }
|
||||||
|
Loading…
Reference in New Issue
Block a user