rhai/Cargo.toml

115 lines
3.2 KiB
TOML
Raw Normal View History

2020-09-08 16:03:38 -05:00
[workspace]
members = [
".",
"codegen"
]
2016-02-29 16:43:45 -05:00
[package]
name = "rhai"
2021-02-27 12:52:20 +08:00
version = "0.19.14"
2019-09-18 11:21:07 +01:00
edition = "2018"
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung", "jhwgh1968"]
description = "Embedded scripting for Rust"
2021-02-27 12:52:20 +08:00
homepage = "https://rhai.rs"
2021-01-14 19:07:03 +08:00
repository = "https://github.com/rhaiscript"
readme = "README.md"
2020-03-22 10:18:16 +08:00
license = "MIT OR Apache-2.0"
include = [
"**/*.rs",
"scripts/*.rhai",
2021-01-24 21:21:15 +08:00
"**/*.md",
"Cargo.toml"
]
2021-02-03 19:22:35 +08:00
keywords = [ "scripting", "scripting-engine", "scripting-language", "embedded" ]
categories = [ "no-std", "embedded", "wasm", "parser-implementations" ]
[dependencies]
2021-01-16 11:26:44 +08:00
smallvec = { version = "1.6", default-features = false, features = ["union"] }
2021-01-19 14:23:05 +08:00
ahash = { version = "0.6", default-features = false }
rhai_codegen = { version = "0.3.3", path = "codegen" }
2020-03-17 19:26:11 +01:00
2020-03-18 10:50:51 +08:00
[features]
2020-07-11 15:09:17 +08:00
default = []
2020-03-18 10:50:51 +08:00
unchecked = [] # unchecked arithmetic
2020-05-24 00:29:06 +08:00
sync = [] # restrict to only types that implement Send + Sync
2020-03-18 10:50:51 +08:00
no_optimize = [] # no script optimizer
2020-05-24 00:29:06 +08:00
no_float = [] # no floating-point
2020-11-01 15:48:48 +08:00
f32_float = [] # set FLOAT=f32
2020-03-18 10:50:51 +08: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
2021-02-13 20:57:56 +08:00
decimal = [ "rust_decimal" ] # add the Decimal number type
2020-05-24 00:29:06 +08:00
no_index = [] # no arrays and indexing
no_object = [] # no custom objects
2020-08-06 10:31:32 +08:00
no_function = [ "no_closure" ] # no script-defined functions (meaning no closures)
2020-08-03 12:10:20 +08:00
no_closure = [] # no automatic sharing and capture of anonymous functions to external variables
2020-05-24 00:29:06 +08:00
no_module = [] # no modules
2020-06-23 10:43:24 +08:00
internals = [] # expose internal data structures
2021-02-19 15:50:48 +08:00
unicode-xid-ident = [ "unicode-xid" ] # allow Unicode Standard Annex #31 for identifiers.
2021-02-13 20:57:56 +08:00
metadata = [ "serde", "serde_json" ] # enables exporting functions metadata to JSON
2020-03-18 10:50:51 +08:00
# compiling for no-std
2021-01-16 11:26:44 +08:00
no_std = [ "smallvec/union", "num-traits/libm", "hashbrown", "core-error", "libm", "ahash/compile-time-rng" ]
2020-03-18 10:50:51 +08:00
2021-01-18 11:35:55 +08:00
# compiling for WASM
wasm-bindgen = [ "instant/wasm-bindgen" ]
stdweb = [ "instant/stdweb" ]
2020-03-18 10:50:51 +08:00
[profile.release]
lto = "fat"
codegen-units = 1
#opt-level = "z" # optimize for size
#panic = 'abort' # remove stack backtrace for no-std
2020-03-18 10:50:51 +08:00
2020-03-17 19:26:11 +01:00
[dependencies.libm]
2021-01-16 11:26:44 +08:00
version = "0.2"
2020-07-20 20:23:35 +08:00
default_features = false
2020-03-17 19:26:11 +01:00
optional = true
[dependencies.num-traits]
2021-01-16 11:26:44 +08:00
version = "0.2"
default-features = false
optional = true
2020-03-17 19:26:11 +01:00
[dependencies.core-error]
2021-01-16 11:26:44 +08:00
version = "0.0"
default_features = false
2020-03-17 19:26:11 +01:00
features = ["alloc"]
optional = true
[dependencies.hashbrown]
2021-01-16 11:26:44 +08:00
version = "0.7"
2020-03-17 19:26:11 +01:00
default-features = false
features = ["ahash", "nightly", "inline-more"]
optional = true
2020-07-03 17:19:55 +08:00
[dependencies.serde]
2021-01-16 11:26:44 +08:00
version = "1.0"
default_features = false
features = ["derive", "alloc"]
2020-07-03 17:19:55 +08:00
optional = true
2020-12-19 19:42:18 +08:00
[dependencies.serde_json]
2021-01-16 11:26:44 +08:00
version = "1.0"
2020-12-19 19:42:18 +08:00
default_features = false
features = ["alloc"]
optional = true
2020-07-29 08:25:37 +09:00
[dependencies.unicode-xid]
2021-01-16 11:26:44 +08:00
version = "0.2"
2020-07-29 08:25:37 +09:00
default_features = false
optional = true
2021-02-13 20:57:56 +08:00
[dependencies.rust_decimal]
version = "1.10"
default_features = false
optional = true
2020-06-17 16:50:57 +08:00
[target.'cfg(target_arch = "wasm32")'.dependencies]
2021-01-18 11:35:55 +08:00
instant= { version = "0.1" } # WASM implementation of std::time::Instant
2021-02-19 15:50:48 +08:00
[target.'cfg(target_arch = "wasm64")'.dependencies]
instant= { version = "0.1" } # WASM implementation of std::time::Instant
[package.metadata.docs.rs]
2021-02-21 14:26:31 +08:00
features = [ "metadata", "internals", "decimal" ]