Add no_std_repl sample.
This commit is contained in:
38
no_std/no_std_repl/Cargo.toml
Normal file
38
no_std/no_std_repl/Cargo.toml
Normal file
@@ -0,0 +1,38 @@
|
||||
cargo-features = ["named-profiles"]
|
||||
|
||||
[workspace]
|
||||
|
||||
[package]
|
||||
name = "no_std_repl"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
authors = ["Stephen Chung"]
|
||||
description = "no-std REPL application"
|
||||
homepage = "https://github.com/rhaiscript/rhai/tree/no_std/no_std_repl"
|
||||
repository = "https://github.com/rhaiscript/rhai"
|
||||
|
||||
[dependencies]
|
||||
rhai = { path = "../../", default_features = false, features = [ "no_std", "decimal", "metadata" ] }
|
||||
wee_alloc = { version = "0.4.5", default_features = false }
|
||||
|
||||
[profile.dev]
|
||||
panic = "abort"
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z" # optimize for size
|
||||
debug = false
|
||||
rpath = false
|
||||
debug-assertions = false
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
|
||||
[profile.unix]
|
||||
inherits = "release"
|
||||
lto = true
|
||||
|
||||
[profile.windows]
|
||||
inherits = "release"
|
||||
|
||||
[profile.macos]
|
||||
inherits = "release"
|
||||
lto = "fat"
|
Reference in New Issue
Block a user