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

@@ -23,20 +23,6 @@ opt-level = "z" # optimize for size
debug = false
rpath = false
debug-assertions = false
codegen-units = 1
panic = "abort"
[profile.unix]
inherits = "release"
codegen-units = 1
lto = true
[profile.windows]
inherits = "release"
[profile.macos]
inherits = "release"
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/rhaiscript/smartstring" }

View File

@@ -12,7 +12,7 @@ To Compile
The nightly compiler is required:
```bash
cargo +nightly build --release --profile unix -Z unstable-features
cargo +nightly build --release
```
Available profiles are: `unix`, `windows` and `macos`.