-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
58 lines (48 loc) · 1.4 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
[package]
name = "crab-rt"
version = "0.1.0"
authors = ["TrAyZeN <lbenitoproduction@gmail.com>"]
edition = "2021"
default-run = "crab-rt"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
opt-level = 2
debug-assertions = true
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug-assertions = false
debug = 1 # For profiling
[[bin]]
name = "uefi"
test = false
bench = false
required-features = ["uefi"]
[features]
default = ["std"]
std = ["dep:image", "rand/default", "dep:core_affinity", "dep:anyhow"]
uefi = ["dep:uefi", "dep:core_maths", "dep:log"]
[dependencies]
image = { version = "0.24.7", default-features = false, features = ["jpeg", "jpeg_rayon"], optional = true }
rand = { version = "0.8.5", default-features = false, features = ["small_rng"] }
core_affinity = { version = "0.8.1", optional = true }
uefi = { version = "0.28.0", features = ["alloc", "global_allocator", "logger", "panic_handler"], optional = true }
core_maths = { version = "0.1.0", optional = true }
log = { version = "0.4.21", optional = true }
anyhow = { version = "1.0.86", optional = true }
[dev-dependencies]
criterion = "0.4"
quickcheck = "1"
quickcheck_macros = "1"
[[bench]]
name = "benchmark"
harness = false
[[bench]]
name = "multithreading"
harness = false
path = "benches/multithreading.rs"
[[bench]]
name = "rayon"
harness = false
path = "benches/rayon.rs"