pub static GLOBAL_ALLOC: System
Available on crate feature system-alloc only.
Expand description

Represents the use of the system’s allocator instead of rust’s default

By default is disabled, but can be enabled with the system-alloc feature It’s intended to be used by the FFI, but you can use it in rust by setting in Cargo.toml

cargo build --release --features "system-alloc"

./dist/libvoluntary_servitude.so (FFI) is compiled with the system’s allocator