[package]
name = "commonware-allocator"
edition.workspace = true
publish = true
version.workspace = true
license = "(MIT OR Apache-2.0) AND MIT"
description = "Allocate and manage memory."
readme = "README.md"
homepage.workspace = true
repository = "https://github.com/commonwarexyz/monorepo/tree/main/allocator"
documentation = "https://docs.rs/commonware-allocator"
links = "mimalloc"
build = "build.rs"
[lints]
workspace = true
[dependencies]
commonware-macros = { workspace = true, features = ["std"] }
libc = { workspace = true, optional = true }
[build-dependencies]
cc.workspace = true
[features]
default = [ "mimalloc" ]
mimalloc = [ "dep:libc" ]
large-objects-1mb = []
large-objects-2mb = []
large-objects-4mb = []
local-dynamic-tls = []