Add bin-features to pull in all features for bin tools.

This commit is contained in:
Stephen Chung
2022-02-03 21:17:47 +08:00
parent 9fa6839380
commit 419ee45043
3 changed files with 13 additions and 11 deletions

View File

@@ -55,12 +55,16 @@ unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for ident
metadata = ["serde", "serde_json", "rhai_codegen/metadata", "smartstring/serde"] # enable exporting functions metadata
debugging = ["internals"] # enable debugging
# compiling for no-std
no_std = ["no-std-compat", "num-traits/libm", "core-error", "libm", "ahash/compile-time-rng"]
# compiling for WASM
wasm-bindgen = ["instant/wasm-bindgen"]
stdweb = ["instant/stdweb"]
# compiling bin tools
bin-features = ["decimal", "metadata", "serde", "debugging", "rustyline"]
[[bin]]
name = "rhai-repl"
required-features = ["rustyline"]