forked from hermit-os/kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
107 lines (90 loc) · 2.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
[package]
name = "rusty-hermit"
version = "0.3.47"
authors = [
"Stefan Lankes <slankes@eonerc.rwth-aachen.de>",
"Colin Finck <colin.finck@rwth-aachen.de>"
]
build = "build.rs"
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["unikernel", "libos"]
categories = ["os"]
repository = "https://github.com/hermitcore/rusty-hermit"
documentation = "https://hermitcore.github.io/libhermit-rs/hermit/"
edition = "2018"
description = """
A Rust-based library operting system
"""
exclude = ["/img/*", "./CMakeLists.txt", "/Dockerfile", "/.gitlab-ci.yml", ".gitignore", ".gitattributes", "/.vscode/*", "/.github/*"]
[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", "acpi", "fsgsbase", "smp"]
vga = []
newlib = []
pci = []
acpi = []
smp = []
fsgsbase = []
[dev-dependencies]
x86 = { version = "0.35.*", default-features = false }
float-cmp = "0.8.0"
[dependencies.scopeguard]
version = "1.1"
default-features = false
[dev-dependencies.num-traits]
version = "0.2"
default-features = false
# features = ["i128"] // Blocked by: https://github.com/rust-num/num-traits/issues/177
[dependencies]
bitflags = "1.2"
#cfg-if = "0.1"
#byteorder = { version = "1.0", default-features = false }
num-derive = "0.3"
crossbeam-utils = { version = "0.8", default-features = false }
[dependencies.num]
version = "0.3"
default-features = false
[dependencies.num-traits]
version = "0.2"
default-features = false
[dependencies.log]
version = "0.4"
default-features = false
#features = ["release_max_level_info"]
[target.'cfg(target_arch = "x86_64")'.dependencies.multiboot]
version = "0.6.*"
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
version = "0.35.*"
default-features = false
[patch.crates-io]
x86 = { git = "https://github.com/stlankes/rust-x86", branch = "master" }
# The development profile, used for `cargo build`.
[profile.dev]
opt-level = 1 # controls the `--opt-level` the compiler builds with
debug = true # controls whether the compiler passes `-C debuginfo`
# a value of `true` is equivalent to `2`
rpath = false # controls whether the compiler passes `-C rpath`
lto = false # controls `-C lto` for binaries and staticlibs
debug-assertions = true # controls whether debug assertions are enabled
# Disabled because of https://github.com/rust-lang/cargo/issues/7359
#panic = "abort" # Call abort on panic https://github.com/rust-lang/rust/pull/32900
# The release profile, used for `cargo build --release`.
[profile.release]
opt-level = 3
debug = false
rpath = false
lto = "thin"
debug-assertions = false
#panic = "abort"