Inline scope entries.
This commit is contained in:
60
Cargo.toml
60
Cargo.toml
@@ -1,8 +1,5 @@
|
||||
[workspace]
|
||||
members = [
|
||||
".",
|
||||
"codegen"
|
||||
]
|
||||
members = [".", "codegen"]
|
||||
|
||||
[package]
|
||||
name = "rhai"
|
||||
@@ -14,14 +11,9 @@ homepage = "https://rhai.rs"
|
||||
repository = "https://github.com/rhaiscript"
|
||||
readme = "README.md"
|
||||
license = "MIT OR Apache-2.0"
|
||||
include = [
|
||||
"**/*.rs",
|
||||
"scripts/*.rhai",
|
||||
"**/*.md",
|
||||
"Cargo.toml"
|
||||
]
|
||||
keywords = [ "scripting", "scripting-engine", "scripting-language", "embedded" ]
|
||||
categories = [ "no-std", "embedded", "wasm", "parser-implementations" ]
|
||||
include = ["**/*.rs", "scripts/*.rhai", "**/*.md", "Cargo.toml"]
|
||||
keywords = ["scripting", "scripting-engine", "scripting-language", "embedded"]
|
||||
categories = ["no-std", "embedded", "wasm", "parser-implementations"]
|
||||
|
||||
[dependencies]
|
||||
smallvec = { version = "1.6", default-features = false, features = ["union"] }
|
||||
@@ -31,29 +23,29 @@ rhai_codegen = { version = "0.3.3", path = "codegen" }
|
||||
|
||||
[features]
|
||||
default = []
|
||||
unchecked = [] # unchecked arithmetic
|
||||
sync = [] # restrict to only types that implement Send + Sync
|
||||
no_optimize = [] # no script optimizer
|
||||
no_float = [] # no floating-point
|
||||
f32_float = [] # set FLOAT=f32
|
||||
only_i32 = [] # set INT=i32 (useful for 32-bit systems)
|
||||
only_i64 = [] # set INT=i64 (default) and disable support for all other integer types
|
||||
decimal = [ "rust_decimal" ] # add the Decimal number type
|
||||
no_index = [] # no arrays and indexing
|
||||
no_object = [] # no custom objects
|
||||
no_function = [ "no_closure" ] # no script-defined functions (meaning no closures)
|
||||
no_closure = [] # no automatic sharing and capture of anonymous functions to external variables
|
||||
no_module = [] # no modules
|
||||
internals = [] # expose internal data structures
|
||||
unicode-xid-ident = [ "unicode-xid" ] # allow Unicode Standard Annex #31 for identifiers.
|
||||
metadata = [ "serde", "serde_json" ] # enables exporting functions metadata to JSON
|
||||
unchecked = [] # unchecked arithmetic
|
||||
sync = [] # restrict to only types that implement Send + Sync
|
||||
no_optimize = [] # no script optimizer
|
||||
no_float = [] # no floating-point
|
||||
f32_float = [] # set FLOAT=f32
|
||||
only_i32 = [] # set INT=i32 (useful for 32-bit systems)
|
||||
only_i64 = [] # set INT=i64 (default) and disable support for all other integer types
|
||||
decimal = ["rust_decimal"] # add the Decimal number type
|
||||
no_index = [] # no arrays and indexing
|
||||
no_object = [] # no custom objects
|
||||
no_function = ["no_closure"] # no script-defined functions (meaning no closures)
|
||||
no_closure = [] # no automatic sharing and capture of anonymous functions to external variables
|
||||
no_module = [] # no modules
|
||||
internals = [] # expose internal data structures
|
||||
unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for identifiers.
|
||||
metadata = ["serde", "serde_json"] # enables exporting functions metadata to JSON
|
||||
|
||||
# compiling for no-std
|
||||
no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash/compile-time-rng" ]
|
||||
no_std = ["smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash/compile-time-rng"]
|
||||
|
||||
# compiling for WASM
|
||||
wasm-bindgen = [ "instant/wasm-bindgen" ]
|
||||
stdweb = [ "instant/stdweb" ]
|
||||
wasm-bindgen = ["instant/wasm-bindgen"]
|
||||
stdweb = ["instant/stdweb"]
|
||||
|
||||
[profile.release]
|
||||
lto = "fat"
|
||||
@@ -101,10 +93,10 @@ default_features = false
|
||||
optional = true
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
instant= { version = "0.1" } # WASM implementation of std::time::Instant
|
||||
instant = { version = "0.1" } # WASM implementation of std::time::Instant
|
||||
|
||||
[target.'cfg(target_arch = "wasm64")'.dependencies]
|
||||
instant= { version = "0.1" } # WASM implementation of std::time::Instant
|
||||
instant = { version = "0.1" } # WASM implementation of std::time::Instant
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = [ "metadata", "internals", "decimal" ]
|
||||
features = ["metadata", "internals", "decimal"]
|
||||
|
Reference in New Issue
Block a user