2020-09-08 23:03:38 +02:00
|
|
|
[workspace]
|
|
|
|
members = [
|
|
|
|
".",
|
|
|
|
"codegen"
|
|
|
|
]
|
|
|
|
|
2016-02-29 22:43:45 +01:00
|
|
|
[package]
|
|
|
|
name = "rhai"
|
2020-12-07 15:21:02 +01:00
|
|
|
version = "0.19.8"
|
2019-09-18 12:21:07 +02:00
|
|
|
edition = "2018"
|
2020-09-09 03:12:28 +02:00
|
|
|
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"]
|
2016-03-16 15:00:57 +01:00
|
|
|
description = "Embedded scripting for Rust"
|
2020-09-30 16:55:40 +02:00
|
|
|
homepage = "https://schungx.github.io/rhai"
|
2016-03-16 15:00:57 +01:00
|
|
|
repository = "https://github.com/jonathandturner/rhai"
|
|
|
|
readme = "README.md"
|
2020-03-22 03:18:16 +01:00
|
|
|
license = "MIT OR Apache-2.0"
|
2016-03-16 15:00:57 +01:00
|
|
|
include = [
|
|
|
|
"**/*.rs",
|
|
|
|
"scripts/*.rhai",
|
|
|
|
"Cargo.toml"
|
2016-03-16 23:07:08 +01:00
|
|
|
]
|
2020-03-16 16:51:32 +01:00
|
|
|
keywords = [ "scripting" ]
|
2020-07-29 07:57:17 +02:00
|
|
|
categories = [ "no-std", "embedded", "wasm", "parser-implementations" ]
|
2018-02-09 22:27:41 +01:00
|
|
|
|
2020-03-08 15:47:13 +01:00
|
|
|
[dependencies]
|
2020-09-22 11:58:04 +02:00
|
|
|
smallvec = { version = "1.4.2", default-features = false }
|
2020-11-17 05:23:53 +01:00
|
|
|
rhai_codegen = { version = "0.3", path = "codegen" }
|
2020-03-17 19:26:11 +01:00
|
|
|
|
2020-03-18 03:50:51 +01:00
|
|
|
[features]
|
2020-07-11 09:09:17 +02:00
|
|
|
default = []
|
2020-03-18 03:50:51 +01:00
|
|
|
unchecked = [] # unchecked arithmetic
|
2020-05-23 18:29:06 +02:00
|
|
|
sync = [] # restrict to only types that implement Send + Sync
|
2020-03-18 03:50:51 +01:00
|
|
|
no_optimize = [] # no script optimizer
|
2020-05-23 18:29:06 +02:00
|
|
|
no_float = [] # no floating-point
|
2020-11-01 08:48:48 +01:00
|
|
|
f32_float = [] # set FLOAT=f32
|
2020-03-18 03:50:51 +01:00
|
|
|
only_i32 = [] # set INT=i32 (useful for 32-bit systems)
|
|
|
|
only_i64 = [] # set INT=i64 (default) and disable support for all other integer types
|
2020-05-23 18:29:06 +02:00
|
|
|
no_index = [] # no arrays and indexing
|
|
|
|
no_object = [] # no custom objects
|
2020-08-06 04:31:32 +02:00
|
|
|
no_function = [ "no_closure" ] # no script-defined functions (meaning no closures)
|
2020-08-03 06:10:20 +02:00
|
|
|
no_closure = [] # no automatic sharing and capture of anonymous functions to external variables
|
2020-05-23 18:29:06 +02:00
|
|
|
no_module = [] # no modules
|
2020-06-23 04:43:24 +02:00
|
|
|
internals = [] # expose internal data structures
|
2020-12-20 05:27:47 +01:00
|
|
|
unicode-xid-ident = ["unicode-xid"] # allow Unicode Standard Annex #31 for identifiers.
|
|
|
|
metadata = [ "serde", "serde_json"] # enables exporting functions metadata to JSON
|
2020-03-18 03:50:51 +01:00
|
|
|
|
2020-03-18 05:04:26 +01:00
|
|
|
# compiling for no-std
|
2020-09-05 11:55:35 +02:00
|
|
|
no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash" ]
|
2020-03-18 03:50:51 +01:00
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
lto = "fat"
|
|
|
|
codegen-units = 1
|
2020-03-18 06:09:38 +01:00
|
|
|
#opt-level = "z" # optimize for size
|
|
|
|
#panic = 'abort' # remove stack backtrace for no-std
|
2020-03-18 03:50:51 +01:00
|
|
|
|
2020-03-17 19:26:11 +01:00
|
|
|
[dependencies.libm]
|
2020-04-12 15:24:30 +02:00
|
|
|
version = "0.2.1"
|
2020-07-20 14:23:35 +02:00
|
|
|
default_features = false
|
2020-03-17 19:26:11 +01:00
|
|
|
optional = true
|
|
|
|
|
2020-08-23 12:28:55 +02:00
|
|
|
[dependencies.num-traits]
|
|
|
|
version = "0.2.11"
|
|
|
|
default-features = false
|
|
|
|
optional = true
|
|
|
|
|
2020-03-17 19:26:11 +01:00
|
|
|
[dependencies.core-error]
|
2020-04-12 15:24:30 +02:00
|
|
|
version = "0.0.0"
|
2020-07-19 15:36:16 +02:00
|
|
|
default_features = false
|
2020-03-17 19:26:11 +01:00
|
|
|
features = ["alloc"]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[dependencies.hashbrown]
|
2020-04-12 15:24:30 +02:00
|
|
|
version = "0.7.1"
|
2020-03-17 19:26:11 +01:00
|
|
|
default-features = false
|
|
|
|
features = ["ahash", "nightly", "inline-more"]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[dependencies.ahash]
|
2020-04-12 15:24:30 +02:00
|
|
|
version = "0.3.2"
|
2020-03-17 19:26:11 +01:00
|
|
|
default-features = false
|
2020-04-24 06:39:24 +02:00
|
|
|
features = ["compile-time-rng"]
|
2020-03-17 19:26:11 +01:00
|
|
|
optional = true
|
2020-06-17 10:50:57 +02:00
|
|
|
|
2020-07-03 11:19:55 +02:00
|
|
|
[dependencies.serde]
|
2020-09-22 11:58:04 +02:00
|
|
|
version = "1.0.116"
|
2020-07-19 16:44:00 +02:00
|
|
|
default_features = false
|
|
|
|
features = ["derive", "alloc"]
|
2020-07-03 11:19:55 +02:00
|
|
|
optional = true
|
|
|
|
|
2020-12-19 12:42:18 +01:00
|
|
|
[dependencies.serde_json]
|
|
|
|
version = "1.0.60"
|
|
|
|
default_features = false
|
|
|
|
features = ["alloc"]
|
|
|
|
optional = true
|
|
|
|
|
2020-07-29 01:25:37 +02:00
|
|
|
[dependencies.unicode-xid]
|
|
|
|
version = "0.2.1"
|
|
|
|
default_features = false
|
|
|
|
optional = true
|
|
|
|
|
2020-06-17 10:50:57 +02:00
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
2020-09-22 11:58:04 +02:00
|
|
|
instant= { version = "0.1.7", features = ["wasm-bindgen"] } # WASM implementation of std::time::Instant
|
2020-07-25 09:52:27 +02:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
features = [ "serde", "internals" ]
|