2016-02-29 22:43:45 +01:00
|
|
|
[package]
|
|
|
|
name = "rhai"
|
2020-04-09 12:45:49 +02:00
|
|
|
version = "0.12.0"
|
2019-09-18 12:21:07 +02:00
|
|
|
edition = "2018"
|
2020-03-02 08:20:29 +01:00
|
|
|
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung"]
|
2016-03-16 15:00:57 +01:00
|
|
|
description = "Embedded scripting for Rust"
|
|
|
|
homepage = "https://github.com/jonathandturner/rhai"
|
|
|
|
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-03-22 03:18:16 +01:00
|
|
|
categories = [ "no-std", "embedded", "parser-implementations" ]
|
2018-02-09 22:27:41 +01:00
|
|
|
|
2020-03-08 15:47:13 +01:00
|
|
|
[dependencies]
|
2020-04-01 04:28:07 +02:00
|
|
|
num-traits = "*"
|
2020-03-17 19:26:11 +01:00
|
|
|
|
2020-03-18 03:50:51 +01:00
|
|
|
[features]
|
2020-04-08 04:19:03 +02:00
|
|
|
#default = ["no_stdlib", "no_function", "no_index", "no_object", "no_float", "only_i32", "unchecked", "no_optimize", "sync"]
|
2020-03-18 06:09:38 +01:00
|
|
|
default = []
|
2020-03-18 03:50:51 +01:00
|
|
|
unchecked = [] # unchecked arithmetic
|
|
|
|
no_index = [] # no arrays and indexing
|
|
|
|
no_float = [] # no floating-point
|
|
|
|
no_function = [] # no script-defined functions
|
2020-03-29 11:15:12 +02:00
|
|
|
no_object = [] # no custom objects
|
2020-03-18 03:50:51 +01:00
|
|
|
no_optimize = [] # no script optimizer
|
|
|
|
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-04-02 13:40:02 +02:00
|
|
|
sync = [] # restrict to only types that implement Send + Sync
|
2020-03-18 03:50:51 +01:00
|
|
|
|
2020-03-18 05:04:26 +01:00
|
|
|
# compiling for no-std
|
|
|
|
no_std = [ "num-traits/libm", "hashbrown", "core-error", "libm" ]
|
2020-03-18 03:50:51 +01:00
|
|
|
|
2020-04-08 04:19:03 +02:00
|
|
|
# other developer features
|
|
|
|
no_stdlib = [] # do not register the standard library
|
|
|
|
optimize_full = [] # set optimization level to Full (default is Simple) - this is a feature used only to simplify testing
|
|
|
|
|
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-03-26 13:26:27 +01:00
|
|
|
version = "*"
|
2020-03-17 19:26:11 +01:00
|
|
|
optional = true
|
|
|
|
|
|
|
|
[dependencies.core-error]
|
2020-03-26 13:26:27 +01:00
|
|
|
version = "*"
|
2020-03-17 19:26:11 +01:00
|
|
|
features = ["alloc"]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[dependencies.hashbrown]
|
2020-03-26 13:26:27 +01:00
|
|
|
version = "*"
|
2020-03-17 19:26:11 +01:00
|
|
|
default-features = false
|
|
|
|
features = ["ahash", "nightly", "inline-more"]
|
|
|
|
optional = true
|
|
|
|
|
|
|
|
[dependencies.ahash]
|
2020-03-26 13:26:27 +01:00
|
|
|
version = "*"
|
2020-03-17 19:26:11 +01:00
|
|
|
default-features = false
|
|
|
|
optional = true
|