Cargo.toml 1.97 KB
Newer Older
1
[package]
2
name = "hermit"
Stefan Lankes's avatar
Stefan Lankes committed
3
version = "0.3.10"
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"]
13
description = """
Stefan Lankes's avatar
Stefan Lankes committed
14
RustyHermit - A Rust-based, lightweight unikernel
15
"""
16
exclude = ["/loader/*", "/tests/*", "./Makefile", "./CMakeLists.txt", "/.travis.yml", "/.gitlab-ci.yml", ".gitignore", "/.devcontainer/*", "/.vscode/*"]
17

Stefan Lankes's avatar
Stefan Lankes committed
18
19
20
[badges]
travis-ci = { repository = "hermitcore/libhermit-rs" }

21
[lib]
Stefan Lankes's avatar
Stefan Lankes committed
22
crate-type = ["staticlib", "rlib"]
23

24
25
[features]
vga = []
26
newlib = []
27
rustc-dep-of-std = ['core', 'compiler_builtins/rustc-dep-of-std']
28

29
[dependencies]
30
31
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
compiler_builtins = { version = '0.1.10', optional = true }
Stefan Lankes's avatar
Stefan Lankes committed
32
bitflags = "1.2"
33
#cfg-if = "0.1"
Stefan Lankes's avatar
Stefan Lankes committed
34
#byteorder = { version = "1.0", default-features = false }
Stefan Lankes's avatar
Stefan Lankes committed
35

36
[dependencies.log]
Stefan Lankes's avatar
Stefan Lankes committed
37
version = "0.4"
38
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
39
#features = ["release_max_level_info"]
40

41
42
[target.'cfg(target_arch = "x86_64")'.dependencies.multiboot]
version = "0.*"
43

44
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
45
version = "0.*"
46
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
47

48
49
50
[package.metadata.cargo-xbuild]
memcpy = true

Stefan Lankes's avatar
Stefan Lankes committed
51
52
# The development profile, used for `cargo build`.
[profile.dev]
53
opt-level = 1      # controls the `--opt-level` the compiler builds with
Stefan Lankes's avatar
Stefan Lankes committed
54
55
56
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
57
lto = false         # controls `-C lto` for binaries and staticlibs
Stefan Lankes's avatar
Stefan Lankes committed
58
debug-assertions = true # controls whether debug assertions are enabled
Stefan Lankes's avatar
Stefan Lankes committed
59
panic = "abort" # Call abort on panic https://github.com/rust-lang/rust/pull/32900
Stefan Lankes's avatar
Stefan Lankes committed
60
61
62

# The release profile, used for `cargo build --release`.
[profile.release]
Stefan Lankes's avatar
Stefan Lankes committed
63
opt-level = 3
Stefan Lankes's avatar
Stefan Lankes committed
64
65
66
67
debug = false
rpath = false
lto = true
debug-assertions = false
68
panic = "abort"