-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
42 lines (38 loc) · 1.4 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[package]
name = "rhai-rand"
version = "0.1.6"
edition = "2018"
resolver = "2"
authors = ["Stephen Chung", "Jay Thomas"]
description = "Random number package for Rhai"
homepage = "https://rhai.rs"
repository = "https://github.com/rhaiscript"
readme = "README.md"
license = "MIT OR Apache-2.0"
keywords = ["scripting", "scripting-language", "embedded", "rhai", "random"]
categories = ["embedded"]
[dependencies]
rhai = { version = "1.5" }
rand = { version = "0.8", features = ["alloc"] }
rust_decimal = { version = "1.25", features = ["rand"], optional = true }
document-features = { version = "0.2", optional = true }
[build-dependencies]
rhai = { version = "1.5" }
rand = { version = "0.8", features = ["alloc"] }
rust_decimal = { version = "1.25", features = ["rand"], optional = true }
serde_json = "1.0.82"
serde = "1.0.140"
[features]
## Default features: `float` and `array`.
default = ["float", "array"]
## Includes functions metadata: parameter names/types, return type, doc-comments etc.
metadata = ["rhai/metadata"]
## Provides random floating-point number generation.
float = []
## Provides methods for Rhai arrays.
array = []
## Provides random [decimal](https://crates.io/crates/rust_decimal) number generation.
decimal = ["rhai/decimal", "rust_decimal"]
# NOTE: Need to manually specify `metadata` feature for local `cargo doc`.
[package.metadata.docs.rs]
features = ["document-features", "decimal", "metadata"]