58 lines
1.6 KiB
TOML
58 lines
1.6 KiB
TOML
[package]
|
|
name = "rhai"
|
|
version = "0.10.2"
|
|
edition = "2018"
|
|
authors = ["Jonathan Turner", "Lukáš Hozda", "Stephen Chung"]
|
|
description = "Embedded scripting for Rust"
|
|
homepage = "https://github.com/jonathandturner/rhai"
|
|
repository = "https://github.com/jonathandturner/rhai"
|
|
readme = "README.md"
|
|
license = "MIT/Apache-2.0"
|
|
include = [
|
|
"**/*.rs",
|
|
"scripts/*.rhai",
|
|
"Cargo.toml"
|
|
]
|
|
|
|
[dependencies]
|
|
num-traits = "0.2.11"
|
|
|
|
[dependencies.libm]
|
|
version = "0.2.1"
|
|
optional = true
|
|
|
|
[dependencies.core-error]
|
|
version = "0.0.1-rc4"
|
|
features = ["alloc"]
|
|
optional = true
|
|
|
|
[dependencies.hashbrown]
|
|
version = "0.7.1"
|
|
default-features = false
|
|
features = ["ahash", "nightly", "inline-more"]
|
|
optional = true
|
|
|
|
[dependencies.ahash]
|
|
version = "0.3.2"
|
|
default-features = false
|
|
optional = true
|
|
|
|
[features]
|
|
#default = ["no_function", "no_index", "no_float", "only_i32", "no_stdlib", "unchecked", "no_optimize"]
|
|
default = [ "optimize_full" ]
|
|
debug_msgs = [] # print debug messages on function registrations and calls
|
|
unchecked = [] # unchecked arithmetic
|
|
no_stdlib = ["num-traits/libm", "hashbrown", "core-error", "libm"] # no standard library of utility functions
|
|
no_index = [] # no arrays and indexing
|
|
no_float = [] # no floating-point
|
|
no_function = [] # no script-defined functions
|
|
no_optimize = [] # no script optimizer
|
|
optimize_full = [] # set optimization level to Full (default is Simple)
|
|
only_i32 = [] # set INT=i32 (useful for 32-bit systems)
|
|
only_i64 = [] # set INT=i64 (default) and disable support for all other integer types
|
|
|
|
[profile.release]
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
#opt-level = "z" # optimize for size
|