Cargo Features

[dependencies]
rhai-dylib = { version = "0.4.0", default-features = false, features = ["sync", "libloading"] }
default = libloading

The libloading feature is set by default whenever rhai-dylib is added without default-features = false somewhere in the dependency tree.

sync

Enables sync of rhai

rhai:

Enable Special Functionalities

Require that all data types implement Send + Sync (for multi-threaded usage).

Affects module_resolvers::LockGuard, module_resolvers::LockGuardMut

libloading default

enable module resolver & plugin loader using the libloading crate.

Enables libloading

Affects loader::libloading, module_resolvers::libloading