-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
129 lines (108 loc) · 2.61 KB
/
Cargo.toml
File metadata and controls
129 lines (108 loc) · 2.61 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[package]
name = "memapi2"
version = "0.11.4"
edition = "2018"
rust-version = "1.46.0"
authors = ["echohumm"]
#noinspection LongLine
description = "A no_std/no-alloc-friendly memory allocation interface for raw buffers, with improved error reporting."
license = "GPL-3.0 OR MIT"
repository = "https://github.com/echohumm/memapi"
readme = "README.md"
keywords = ["allocator", "no_std", "no_alloc", "memory", "allocation"]
categories = ["no-std::no-alloc", "memory-management"]
include = [
"src/**",
"build.rs",
"Cargo.toml",
"README.md"
]
build = "build.rs"
[features]
default = []
# internal features for testing
__dev = []
# nightly support
## allows disabling allocator_api on nightly
no_nightly = []
## allows disabling the usage of the alloc crate
no_alloc = []
metadata = []
# std support
std = []
# allocator support
## the standard c allocator
c_alloc = []
## c alloca-based allocator
stack_alloc = ["alloc_temp_trait", "c_alloc", "cc"]
## adds a trait for temporary, scoped allocations
alloc_temp_trait = []
checked_ops = []
# actual features
## support best-effort os error reporting from errno
os_err_reporting = ["std"]
## adds support for catching unwinds to stack_alloc
catch_unwind = ["stack_alloc", "std"]
## stdlib datatype replacements
stdlib_data = []
# feature bundles
full = ["c_alloc", "checked_ops", "stack_alloc", "stdlib_data"]
full_std = ["full", "catch_unwind", "os_err_reporting"]
full_nightly = ["metadata", "full"]
full_nightly_std = ["full_nightly", "full_std"]
[package.metadata.docs.rs]
features = ["full"]
[badges]
docsrs = { status = "passing" }
maintenance = { status = "actively-developed" }
[[test]]
name = "alc"
path = "tests/alloc.rs"
[[test]]
name = "malc"
path = "tests/alloc_mut.rs"
required-features = []
[[test]]
name = "stk"
path = "tests/stack_alloc.rs"
required-features = ["stack_alloc"]
[[test]]
name = "c_alc"
path = "tests/c_alloc.rs"
[[test]]
name = "hlp"
path = "tests/helpers.rs"
[[test]]
name = "lyt"
path = "tests/layout.rs"
[dependencies]
bitflags = "=1.3.2"
libc = { version = "=0.2.163", default-features = false }
rustversion = "=1.0.22"
ctrlc = { version = "=3.4.0", optional = true }
[build-dependencies]
cc = { version = "=1.0.83", optional = true }
libc = { version = "=0.2.163", default-features = false }
rustversion = "=1.0.22"
#[[bin]]
#name = "alcm"
#path = "bin/alloc_many.rs"
#required-features = ["ctrlc"]
#
#[dev-dependencies]
#criterion = "0.8.1"
#
#[[bench]]
#name = "lyt"
#path = "benches/layout.rs"
#harness = false
#
#[[bench]]
#name = "alc"
#path = "benches/alloc.rs"
#harness = false
#
#[[bench]]
#name = "hlp"
#path = "benches/helpers.rs"
#harness = false