forked from hermit-os/kernel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
137 lines (126 loc) · 3.36 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
[package]
name = "libhermit-rs"
version = "0.6.1"
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/hermitcore/libhermit-rs"
documentation = "https://hermitcore.github.io/libhermit-rs/hermit/"
edition = "2021"
description = "A Rust-based library operating system"
exclude = [
"/.github/*",
"/.vscode/*",
"/.gitlab-ci.yml",
"/Dockerfile",
"/img/*",
"./CMakeLists.txt",
".gitattributes",
".gitignore",
]
[lib]
crate-type = ["staticlib", "lib"] # "lib" required for integration tests
name = "hermit"
[[test]]
name = "basic_print"
harness = false
[[test]]
name = "basic_math"
harness = true
[[test]]
name = "measure_startup_time"
harness = false
[features]
default = ["pci", "pci-ids", "acpi", "fsgsbase", "smp", "tcp", "dhcpv4"]
vga = []
newlib = []
pci = []
acpi = []
smp = ["include-transformed"]
fsgsbase = []
trace = []
tcp = [
"async-task",
"futures-lite",
"smoltcp",
]
dhcpv4 = [
"tcp",
"smoltcp/proto-dhcpv4",
"smoltcp/socket-dhcpv4",
]
[dependencies]
ahash = { version = "0.8", default-features = false }
align-address = "0.1"
bitflags = "2.2"
crossbeam-utils = { version = "0.8", default-features = false }
dyn-clone = "1.0"
hashbrown = { version = "0.13", default-features = false }
hermit-entry = { version = "0.9", features = ["kernel"] }
hermit-sync = "0.1.2"
include-transformed = { version = "0.2", optional = true }
linked_list_allocator = { version = "0.10", default-features = false }
log = { version = "0.4", default-features = false }
pci-ids = { version = "0.2", optional = true }
pflock = "0.2"
shell-words = { version = "1.1", default-features = false }
qemu-exit = "3.0"
rand_chacha = { version = "0.3", default-features = false }
futures-lite = { version = "1.11", default-features = false, optional = true }
async-task = { version = "4.4", default-features = false, optional = true }
lock_api = "0.4"
num = { version = "0.4", default-features = false }
num-traits = { version = "0.2", default-features = false }
num-derive = "0.3"
zerocopy = "0.6"
time = { version = "0.3", default-features = false }
pci_types = { git = "https://github.com/hermitcore/pci_types.git", branch = "hermit" }
[dependencies.smoltcp]
version = "0.9"
optional = true
default-features = false
features = [
"alloc",
"async",
"medium-ethernet",
"proto-ipv4",
"proto-ipv6",
"socket-tcp",
"socket-udp",
# Enable for increased output
# "log",
# "verbose",
]
[target.'cfg(target_arch = "x86_64")'.dependencies]
multiboot = "0.8"
uart_16550 = "0.2"
x86 = { version = "0.52", default-features = false }
x86_64 = "0.14"
[target.'cfg(target_arch = "aarch64")'.dependencies]
hermit-dtb = { version = "0.1" }
aarch64 = { version = "0.0.10", default-features = false }
tock-registers = { version = "0.8.x", default-features = false }
arm-gic = { version = "0.1" }
[dev-dependencies]
float-cmp = "0.9"
num-traits = { version = "0.2", default-features = false }
x86 = { version = "0.52", default-features = false }
[workspace]
members = [
"xtask",
]
exclude = [
"hermit-builtins",
]