-
Notifications
You must be signed in to change notification settings - Fork 55
/
Cargo.toml
61 lines (51 loc) · 1.59 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
authors = [
"The Cortex-M Team <cortex-m@teams.rust-embedded.org>",
"Jonathan Pallant <github@thejpster.org.uk>",
"Jorge Aparicio <jorge@japaric.io>",
"Sébastien Béchet <sebastien.bechet@osinix.com>",
]
description = "A heap allocator for embedded systems"
repository = "https://github.com/rust-embedded/embedded-alloc"
documentation = "https://docs.rs/embedded-alloc"
readme = "README.md"
edition = "2021"
keywords = [
"allocator",
"embedded",
"arm",
"riscv",
"cortex-m",
]
license = "MIT OR Apache-2.0"
name = "embedded-alloc"
version = "0.6.0"
[features]
default = ["llff", "tlsf"]
allocator_api = []
# Use the Two-Level Segregated Fit allocator
tlsf = ["rlsf", "const-default"]
# Use the LinkedList first-fit allocator
llff = ["linked_list_allocator"]
[dependencies]
critical-section = "1.0"
linked_list_allocator = { version = "0.10.5", default-features = false, optional = true }
rlsf = { version = "0.2.1", default-features = false, optional = true }
const-default = { version = "1.0.0", default-features = false, optional = true }
[dev-dependencies]
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7"
cortex-m-semihosting = "0.5"
panic-semihosting = { version = "0.6", features = ["exit"] }
[[example]]
name = "allocator_api"
required-features = ["allocator_api", "llff"]
[[example]]
name = "llff_integration_test"
required-features = ["allocator_api", "llff"]
[[example]]
name = "tlsf_integration_test"
required-features = ["allocator_api", "tlsf"]
[[example]]
name = "global_alloc"
required-features = ["llff"]