Features
Features
The following features are supported in OpEn:
Memory allocators
You can use the feature rp
to use the memory allocator rpmalloc
and jem
for jemalloc
.
For example, you can include OpEn as a dependency in your Rust project by adding the following line to you Cargo.toml
file:
[dependencies]
optimization-engine = { version = "0.7", features = ["rp"] }
You cannot use both rp
and jemalloc
.
WebAssembly Support
If you intend to use OpEn in WebAssembly you need to use the feature wasm
.
[dependencies]
optimization-engine = { version = "0.7", features = ["wasm"] }