-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
49 lines (42 loc) · 1.13 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
43
44
45
46
47
48
49
[package]
name = "rhai-dylib"
version = "0.5.0"
edition = "2021"
resolver = "2"
authors = ["Lucas Tabis", "Stephen Chung"]
description = "Dylib support for Rhai"
homepage = "https://rhai.rs/rhaiscript/rhai-dylib"
repository = "https://github.com/rhaiscript/rhai-dylib"
readme = "README.md"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/rhai-dylib/"
include = ["/src/**/*", "/Cargo.toml", "/README.md", "LICENSE*"]
keywords = [
"scripting",
"scripting-engine",
"scripting-language",
"embedded",
"plugins",
]
categories = ["embedded"]
[dependencies]
libloading = { version = "0.8.5", optional = true }
rhai = { version = "1.20.1", features = [
"internals", # Used to implement the ModuleResolver trait.
] }
[features]
default = ["libloading"]
sync = ["rhai/sync"]
libloading = [
"dep:libloading",
] # enable module resolver & plugin loader using the libloading crate.
[[example]]
name = "dynamic_library"
crate-type = ["cdylib"]
path = "examples/dynamic_library/lib.rs"
[[example]]
name = "loader"
path = "examples/loader/main.rs"
[[example]]
name = "module_resolver"
path = "examples/module_resolver/main.rs"