39 lines
1.3 KiB
TOML
39 lines
1.3 KiB
TOML
[package]
|
|
name = "parity-util-mem"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
repository = "https://github.com/paritytech/parity-common"
|
|
description = "Collection of memory related utilities"
|
|
license = "GPL-3.0"
|
|
|
|
[dependencies]
|
|
clear_on_drop = "0.2"
|
|
cfg-if = "0.1.6"
|
|
malloc_size_of_derive = "0.1.0"
|
|
dlmalloc = { version = "0.1", features = ["global"], optional = true }
|
|
wee_alloc = { version = "0.4", optional = true }
|
|
jemallocator = { version = "0.1", optional = true }
|
|
|
|
elastic-array = { version = "*", optional = true }
|
|
ethereum-types = { version = "*", optional = true }
|
|
parking_lot = { version = "*", optional = true }
|
|
|
|
[target."cfg(windows)".dependencies.winapi]
|
|
version = "0.3.4"
|
|
|
|
[features]
|
|
default = ["std", "ethereum-impls"]
|
|
std = []
|
|
# when activated mem is removed through volatile primitive instead of clear_on_drop crate
|
|
volatile-erase = []
|
|
# use dlmalloc as global allocator
|
|
dlmalloc-global = ["dlmalloc", "estimate-heapsize"]
|
|
# use wee_alloc as global allocator
|
|
weealloc-global = ["wee_alloc", "estimate-heapsize"]
|
|
# use jemalloc as global allocator
|
|
jemalloc-global = ["jemallocator"]
|
|
# implement additional types
|
|
ethereum-impls = ["ethereum-types", "elastic-array", "parking_lot"]
|
|
# Full estimate: no call to allocator
|
|
estimate-heapsize = []
|