Cargo.toml 2.61 KB
Newer Older
1
[package]
Stefan Lankes's avatar
Stefan Lankes committed
2
name = "rusty-hermit"
Stefan Lankes's avatar
Stefan Lankes committed
3
version = "0.3.49"
4
authors = [
5
6
	"Stefan Lankes <slankes@eonerc.rwth-aachen.de>",
	"Colin Finck <colin.finck@rwth-aachen.de>"
7
]
8
license = "MIT OR Apache-2.0"
9
readme = "README.md"
Stefan Lankes's avatar
Stefan Lankes committed
10
11
keywords = ["unikernel", "libos"]
categories = ["os"]
Stefan Lankes's avatar
Stefan Lankes committed
12
repository = "https://github.com/hermitcore/rusty-hermit"
Stefan Lankes's avatar
Stefan Lankes committed
13
documentation = "https://hermitcore.github.io/libhermit-rs/hermit/"
14
edition = "2018"
15
description = """
Stefan Lankes's avatar
Stefan Lankes committed
16
A Rust-based library operting system
17
"""
Stefan Lankes's avatar
Stefan Lankes committed
18
exclude = ["/img/*", "./CMakeLists.txt", "/Dockerfile", "/.gitlab-ci.yml", ".gitignore", ".gitattributes", "/.vscode/*", "/.github/*"]
19

20
[lib]
21
crate-type = ["staticlib", "lib"]  # "lib" required for integration tests
Stefan Lankes's avatar
Stefan Lankes committed
22
name = "hermit"
23

24
25
26
27
28
29
[[test]]
name = "basic_print"
harness = false

[[test]]
name = "basic_math"
30
31
32
33
harness = true

[[test]]
name = "measure_startup_time"
34
35
harness = false

36
[features]
37
default = ["pci", "acpi", "fsgsbase", "smp"]
38
vga = []
39
newlib = []
40
41
pci = []
acpi = []
42
smp = []
43
fsgsbase = []
44

45
[dev-dependencies]
46
x86 = { version = "0.40.*", default-features = false }
Jonathan Schwender's avatar
Jonathan Schwender committed
47
float-cmp = "0.8.0"
48

49
50
51
52
[dependencies.scopeguard]
version = "1.1"
default-features = false

Jonathan Schwender's avatar
Jonathan Schwender committed
53
[dev-dependencies.num-traits]
Jonathan Schwender's avatar
Jonathan Schwender committed
54
version = "0.2"
Jonathan Schwender's avatar
Jonathan Schwender committed
55
default-features = false
56
# features = ["i128"] // Blocked by: https://github.com/rust-num/num-traits/issues/177
Jonathan Schwender's avatar
Jonathan Schwender committed
57

58
[dependencies]
Stefan Lankes's avatar
Stefan Lankes committed
59
bitflags = "1.2"
60
#cfg-if = "0.1"
Stefan Lankes's avatar
Stefan Lankes committed
61
#byteorder = { version = "1.0", default-features = false }
62
num-derive = "0.3"
63
crossbeam-utils = { version = "0.8", default-features = false }
64
65

[dependencies.num]
dependabot[bot]'s avatar
dependabot[bot] committed
66
version = "0.4"
67
68
69
70
71
default-features = false

[dependencies.num-traits]
version = "0.2"
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
72

73
[dependencies.log]
Stefan Lankes's avatar
Stefan Lankes committed
74
version = "0.4"
75
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
76
#features = ["release_max_level_info"]
77

78
[target.'cfg(target_arch = "x86_64")'.dependencies.multiboot]
79
version = "0.6.*"
80

81
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
82
version = "0.40.*"
83
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
84
85
86

# The development profile, used for `cargo build`.
[profile.dev]
87
opt-level = 1      # controls the `--opt-level` the compiler builds with
Stefan Lankes's avatar
Stefan Lankes committed
88
debug = true       # controls whether the compiler passes `-C debuginfo`
89
# a value of `true` is equivalent to `2`
Stefan Lankes's avatar
Stefan Lankes committed
90
rpath = false      # controls whether the compiler passes `-C rpath`
Stefan Lankes's avatar
Stefan Lankes committed
91
lto = false         # controls `-C lto` for binaries and staticlibs
Stefan Lankes's avatar
Stefan Lankes committed
92
debug-assertions = true # controls whether debug assertions are enabled
93
94
# 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
Stefan Lankes's avatar
Stefan Lankes committed
95
96
97

# The release profile, used for `cargo build --release`.
[profile.release]
Stefan Lankes's avatar
Stefan Lankes committed
98
opt-level = 2
Stefan Lankes's avatar
Stefan Lankes committed
99
100
debug = false
rpath = false
Stefan Lankes's avatar
Stefan Lankes committed
101
lto = false
Stefan Lankes's avatar
Stefan Lankes committed
102
debug-assertions = false
103
#panic = "abort"