forked from hermit-os/kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
120 lines (109 loc) · 2.9 KB
/
Cargo.toml
File metadata and controls
120 lines (109 loc) · 2.9 KB
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
[package]
name = "libhermit-rs"
version = "0.5.0"
authors = [
"Stefan Lankes <slankes@eonerc.rwth-aachen.de>",
"Colin Finck <colin.finck@rwth-aachen.de>",
"Martin Kröning <mkroening@posteo.net>",
"Frederik Schulz",
"Thomas Lambertz",
"Jonathan Klimt <jonathan.klimt@eonerc.rwth-aachen.de>",
"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 = ["num-derive"]
acpi = []
smp = ["include-transformed"]
fsgsbase = []
tcp = [
"async-task",
"futures-lite",
"smoltcp",
]
dhcpv4 = [
"tcp",
"smoltcp/proto-dhcpv4",
"smoltcp/socket-dhcpv4",
]
[dependencies]
bitflags = "1.3"
crossbeam-utils = { version = "0.8", default-features = false }
hermit-entry = { version = "0.9", features = ["kernel"] }
include-transformed = { version = "0.2", optional = true }
log = { version = "0.4", default-features = false }
num = { version = "0.4", default-features = false }
num-derive = { version = "0.3", optional = true }
num-traits = { version = "0.2", default-features = false }
once_cell = { version = "1.12", default-features = false, features = ["alloc"] }
pci-ids = { version = "0.2", optional = true }
scopeguard = { version = "1.1", default-features = false }
shell-words = { version = "1.1", default-features = false }
qemu-exit = "3.0"
futures-lite = { version = "1.11", default-features = false, optional = true }
async-task = { version = "4.3", default-features = false, optional = true }
[dependencies.smoltcp]
version = "0.8"
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"
time = { version = "0.3", default-features = false }
x86 = { version = "0.51", default-features = false }
[dev-dependencies]
float-cmp = "0.9"
num-traits = { version = "0.2", default-features = false }
x86 = { version = "0.51", default-features = false }
[target.'cfg(target_arch = "aarch64")'.dependencies.aarch64]
version = "0.0.7"
default-features = false
[workspace]
members = [
"xtask",
]