-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
37 lines (31 loc) · 959 Bytes
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "baby-mimalloc"
version = "0.2.1"
edition = "2021"
description = "Mimalloc implemented in Rust (not a binding to the C library) with only basic features."
keywords = ["mimalloc", "allocator", "no_std"]
categories = ["memory-management"]
license = "Apache-2.0"
authors = ["Yufan You <[email protected]>"]
repository = "https://github.com/ouuan/baby-mimalloc"
exclude = [".github"]
[dependencies]
libc = { version = "0.2.167", default-features = false, optional = true }
spin = { version = "0.9.8", default-features = false, features = ["spin_mutex"], optional = true }
[dev-dependencies]
rand = "0.8.5"
[features]
std = []
mmap = ["dep:libc"]
std_mutex = ["std"]
spin_mutex = ["dep:spin"]
deferred_free = []
[[test]]
name = "global_alloc"
required-features = ["mmap", "spin_mutex"]
[[test]]
name = "deferred_free"
required-features = ["deferred_free"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]