[package] name = "alloc_cat" version = "1.0.0" edition = "2021" license-file = "LICENSES.md" description = "a simple allocator for small-to-tiny Wasm projects in rust" categories = [ "memory-management", "no-std", "wasm" ] keywords = [ "allocator", "no_std" ] repository = "https://code.lag.net/robey/alloc_cat" readme = "README.md" build-std = [ "core", "alloc" ] # for wasm [lib] crate-type = [ "cdylib", "rlib" ] [features] default = [ "system_allocator" ] # 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. system_allocator = [] # 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. audit_sizes = [] [dependencies] arr_macro = "0.2.1" cfg-if = "1.0.0" memmap2 = "0.9.4" spin = { version = "0.9.8", default-features = false, features = [ "spin_mutex", "once" ] } [profile.dev] panic = "abort" [profile.release] panic = "abort"