Cargo Features

[dependencies]
alloc_cat = { version = "1.0.0", default-features = false, features = ["system_allocator", "audit_sizes"] }
default = system_allocator

The system_allocator feature is set by default whenever alloc_cat is added without default-features = false somewhere in the dependency tree.

system_allocator default

when running outside of wasm, use the system allocator? this is much faster than the custom allocator we use on wasm, because it's single-threaded. in non-wasm environments, the custom allocator has to be locked on each use.

audit_sizes

when using the audited allocator, should it track the number of allocations of each size and alignment? this slows things down dramatically but might give you clues if you're seeking leaks.