-
Notifications
You must be signed in to change notification settings - Fork 86
/
Cargo.toml
179 lines (166 loc) · 4.72 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
[package]
name = "hermit-kernel"
version = "0.8.0"
authors = [
"Stefan Lankes <[email protected]>",
"Colin Finck <[email protected]>",
"Martin Kröning <[email protected]>",
"Frederik Schulz",
"Thomas Lambertz",
"Jonathan Klimt <[email protected]>",
"Jonathan Schwender",
"Daniel Krebs",
"Yu Duan",
]
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["unikernel", "libos"]
categories = ["os"]
repository = "https://github.com/hermit-os/kernel"
documentation = "https://hermit-os.github.io/kernel/hermit/"
edition = "2021"
description = "A Rust-based library operating system"
exclude = [
"/.github/*",
"/.vscode/*",
"/img/*",
".gitattributes",
".gitignore",
]
[lib]
crate-type = ["staticlib", "lib"] # "lib" required for integration tests
name = "hermit"
[[test]]
name = "basic_math"
harness = true
[[test]]
name = "basic_print"
harness = false
[[test]]
name = "measure_startup_time"
harness = false
[features]
default = ["pci", "pci-ids", "acpi", "fsgsbase", "smp", "tcp", "dhcpv4", "fuse", "vsock"]
acpi = []
common-os = []
dhcpv4 = ["smoltcp", "smoltcp/proto-dhcpv4", "smoltcp/socket-dhcpv4"]
dns = ["smoltcp", "smoltcp/socket-dns"]
fs = ["fuse"]
fsgsbase = []
fuse = ["pci", "dep:fuse-abi", "fuse-abi/num_enum"]
gem-net = ["tcp", "dep:tock-registers"]
idle-poll = []
mmap = []
newlib = []
nostd = []
pci = ["virtio/pci"]
rtl8139 = ["tcp", "pci"]
semihosting = ["dep:semihosting"]
shell = ["simple-shell"]
smp = []
strace = []
tcp = ["smoltcp", "smoltcp/socket-tcp"]
trace = []
udp = ["smoltcp", "smoltcp/socket-udp"]
vga = []
vsock = ["pci"]
[dependencies]
hermit-macro = { path = "hermit-macro" }
virtio = { package = "virtio-spec", version = "0.2", features = ["alloc", "mmio", "nightly", "zerocopy"] }
ahash = { version = "0.8", default-features = false }
align-address = "0.3"
anstyle = { version = "1", default-features = false }
async-lock = { version = "3.4.0", default-features = false }
async-trait = "0.1.83"
bit_field = "0.10"
bitflags = "2.6"
build-time = "0.1.3"
cfg-if = "1"
crossbeam-utils = { version = "0.8", default-features = false }
fdt = { version = "0.1", features = ["pretty-printing"] }
free-list = "0.3"
fuse-abi = { version = "0.2", features = ["linux", "zerocopy"], optional = true }
hashbrown = { version = "0.15", default-features = false }
hermit-entry = { version = "0.10", features = ["kernel"] }
hermit-sync = "0.1"
lock_api = "0.4"
log = { version = "0.4", default-features = false }
num = { version = "0.4", default-features = false }
num-derive = "0.4"
num-traits = { version = "0.2", default-features = false }
pci-ids = { version = "0.2", optional = true }
pci_types = { version = "0.10" }
rand_chacha = { version = "0.3", default-features = false }
shell-words = { version = "1.1", default-features = false }
simple-shell = { version = "0.0.1", optional = true }
smallvec = { version = "1", features = ["const_new"] }
take-static = "0.1"
talc = { version = "4" }
time = { version = "0.3", default-features = false }
volatile = "0.6"
zerocopy = { version = "0.8", default-features = false }
[dependencies.smoltcp]
version = "0.11"
optional = true
default-features = false
features = [
"alloc",
"async",
"medium-ethernet",
"proto-ipv4",
"proto-ipv6",
# Enable IP fragmentation
"proto-ipv4-fragmentation",
"proto-ipv6-fragmentation",
#
# Assume a MTU size of 9000
#"fragmentation-buffer-size-8192",
#"reassembly-buffer-size-8192",
#
# Enable for increased output
# "log",
# "verbose",
]
[target.'cfg(target_arch = "x86_64")'.dependencies]
free-list = { version = "0.3", features = ["x86_64"] }
multiboot = "0.8"
uart_16550 = "0.3"
x86 = { version = "0.52", default-features = false }
x86_64 = "0.15"
memory_addresses = { version = "0.2.2", default-features = false, features = [
"x86_64",
"conv-x86",
"conv-x86_64",
] }
[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64 = { version = "0.0.13", default-features = false }
arm-gic = { version = "0.1" }
hermit-dtb = { version = "0.1" }
semihosting = { version = "0.1", optional = true }
memory_addresses = { version = "0.2.2", default-features = false, features = [
"aarch64",
] }
[target.'cfg(target_arch = "riscv64")'.dependencies]
riscv = "0.12"
sbi-rt = "0.0.3"
semihosting = { version = "0.1", optional = true }
tock-registers = { version = "0.9", optional = true }
trapframe = "0.10"
memory_addresses = { version = "0.2.2", default-features = false, features = [
"riscv64",
] }
[dev-dependencies]
float-cmp = "0.10"
num-traits = { version = "0.2", default-features = false }
x86 = { version = "0.52", default-features = false }
[build-dependencies]
anyhow = "1"
llvm-tools = "0.1"
[workspace]
members = [
"hermit-macro",
"xtask",
]
exclude = [
"hermit-builtins",
]