Cargo.toml 2.23 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.38"
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"]
Stefan Lankes's avatar
Stefan Lankes committed
26
name = "hermit"
27

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

[[test]]
name = "basic_math"
harness = false

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

43
44
45
[dev-dependencies]
x86_64 = "0.11.0"

Jonathan Schwender's avatar
Jonathan Schwender committed
46
47
48
49
[dev-dependencies.num-traits]
version = "0.2.12"
default-features = false

50
[dependencies]
Stefan Lankes's avatar
Stefan Lankes committed
51
bitflags = "1.2"
52
#cfg-if = "0.1"
Stefan Lankes's avatar
Stefan Lankes committed
53
#byteorder = { version = "1.0", default-features = false }
54
55
56
57
58
59
60
61
62
num-derive = "0.3"

[dependencies.num]
version = "0.2"
default-features = false

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

64
[dependencies.log]
Stefan Lankes's avatar
Stefan Lankes committed
65
version = "0.4"
66
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
67
#features = ["release_max_level_info"]
68

69
70
[target.'cfg(target_arch = "x86_64")'.dependencies.multiboot]
version = "0.*"
71

72
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
73
version = "0.*"
74
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
75
76
77

# The development profile, used for `cargo build`.
[profile.dev]
78
opt-level = 1      # controls the `--opt-level` the compiler builds with
Stefan Lankes's avatar
Stefan Lankes committed
79
80
81
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`
Stefan Lankes's avatar
Stefan Lankes committed
82
lto = false         # controls `-C lto` for binaries and staticlibs
Stefan Lankes's avatar
Stefan Lankes committed
83
debug-assertions = true # controls whether debug assertions are enabled
Stefan Lankes's avatar
Stefan Lankes committed
84
panic = "abort" # Call abort on panic https://github.com/rust-lang/rust/pull/32900
Stefan Lankes's avatar
Stefan Lankes committed
85
86
87

# The release profile, used for `cargo build --release`.
[profile.release]
Stefan Lankes's avatar
Stefan Lankes committed
88
opt-level = 3
Stefan Lankes's avatar
Stefan Lankes committed
89
90
debug = false
rpath = false
91
lto = "thin"
Stefan Lankes's avatar
Stefan Lankes committed
92
debug-assertions = false
93
panic = "abort"