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

Stefan Lankes's avatar
Stefan Lankes committed
21
22
23
[badges]
travis-ci = { repository = "hermitcore/libhermit-rs" }

24
[lib]
25
crate-type = ["staticlib", "lib"]  # "lib" required for integration tests
Stefan Lankes's avatar
Stefan Lankes committed
26
name = "hermit"
27

28
29
30
31
32
33
[[test]]
name = "basic_print"
harness = false

[[test]]
name = "basic_math"
34
35
36
37
harness = true

[[test]]
name = "measure_startup_time"
38
39
harness = false

40
[features]
41
default = ["pci", "acpi"]
42
vga = []
43
newlib = []
44
45
pci = []
acpi = []
46
nosmp = []
47

48
[dev-dependencies]
Stefan Lankes's avatar
Stefan Lankes committed
49
x86 = { version = "0.34.*", default-features = false }
Jonathan Schwender's avatar
Jonathan Schwender committed
50
float-cmp = "0.8.0"
51

52
53
54
55
[dependencies.scopeguard]
version = "1.1"
default-features = false

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

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

[dependencies.num]
dependabot[bot]'s avatar
dependabot[bot] committed
69
version = "0.3"
70
71
72
73
74
default-features = false

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

76
[dependencies.log]
Stefan Lankes's avatar
Stefan Lankes committed
77
version = "0.4"
78
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
79
#features = ["release_max_level_info"]
80

81
[target.'cfg(target_arch = "x86_64")'.dependencies.multiboot]
82
version = "0.6.*"
83

84
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
Stefan Lankes's avatar
Stefan Lankes committed
85
version = "0.34.*"
86
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
87
88
89

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

# The release profile, used for `cargo build --release`.
[profile.release]
Stefan Lankes's avatar
Stefan Lankes committed
101
opt-level = 3
Stefan Lankes's avatar
Stefan Lankes committed
102
103
debug = false
rpath = false
104
lto = "thin"
Stefan Lankes's avatar
Stefan Lankes committed
105
debug-assertions = false
106
#panic = "abort"