-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
90 lines (81 loc) · 2.25 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
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
[package]
name = "kernel"
version = "0.1.0"
authors = ["Collin <chbaker0@gmail.com>"]
edition = "2021"
[workspace]
members = [
".",
"buildutil",
"init",
"mkimage",
"shared",
]
default-members = ["."]
resolver = "2"
[workspace.dependencies]
aligned = "0.4.1"
arrayvec = { version = "0.7.2", default-features = false }
bitflags = "2.4.2"
cargo_metadata = "0.18.1"
cfg-if = "1.0"
clap = "4"
color-eyre = { version = "0.6", default-features = false }
env_logger = "0.11.1"
eyre = "0.6"
intrusive-collections = { version = "0.9.6", default-features = false, features = ["nightly"] }
itertools = { version = "0.12.1", default-features = false }
memoffset = "0.9.0"
lazy_static = { version = "1.4.0", default-features = false }
log = "0.4.14"
multiboot2 = "0.19.0"
multiboot2-header = "0.2.0"
num-derive = "0.4"
num-traits = { version = "0.2", default-features = false }
once_cell = { version = "1.19.0", default-features = false }
pretty_assertions = "1.4.0"
proptest = "1.4.0"
spin = "0.9.8"
static_assertions = "1.1.0"
test-log = "0.2.11"
xmas-elf = "0.9.1"
x86_64 = "0.14.10"
[features]
default = ["qemu_debugcon"]
qemu_debugcon = []
[dependencies]
shared = { path = "shared" }
bitflags = { workspace = true }
cfg-if = { workspace = true }
lazy_static = { workspace = true, features = ["spin_no_std"] }
log = { workspace = true }
multiboot2 = { workspace = true }
once_cell = { workspace = true }
spin = { workspace = true }
static_assertions = { workspace = true }
xmas-elf = { workspace = true }
x86_64 = { workspace = true }
[build-dependencies]
buildutil = { path = "buildutil" }
color-eyre = { workspace = true }
eyre = { workspace = true }
multiboot2-header = { workspace = true }
# Build most dependencies with optimizations in debug mode. Most debuggable
# issues are unlikely to come from most crates.io deps. This doesn't affect
# workspace packages.
#
# Optimizing dependencies, especially the standard library, significantly
# improves debug mode performance.
[profile.dev.package."*"]
opt-level = 2
debug = 1
debug-assertions = true
overflow-checks = true
# Dependencies aren't rebuilt often, so there's not a strong reason to use
# incremental builds.
incremental = false
codegen-units = 1
[profile.release]
lto = "thin"
incremental = false
codegen-units = 1