Cargo.toml 2.05 KB
Newer Older
1
[package]
2
3
name = "hermit"
publish = ["libhermit"]
Stefan Lankes's avatar
Stefan Lankes committed
4
version = "0.3.9"
5
authors = [
6
7
	"Stefan Lankes <slankes@eonerc.rwth-aachen.de>",
	"Colin Finck <colin.finck@rwth-aachen.de>"
8
]
9
build = "build.rs"
10
11
license = "MIT/Apache-2.0"
readme = "README.md"
Stefan Lankes's avatar
Stefan Lankes committed
12
13
keywords = ["unikernel", "libos"]
categories = ["os"]
14
15
16
description = """
A Rust-based, lightweight unikernel
"""
Stefan Lankes's avatar
Stefan Lankes committed
17
exclude = ["/loader/*", "/examples/*", "/.travis.yml", "/.gitlab-ci.yml", ".gitignore", "/.devcontainer/*", "/.vscode/*"]
18

19
20
[lib]
crate-type = ["staticlib"]
21

22
[features]
Stefan Lankes's avatar
Stefan Lankes committed
23
#default = ["network"]
24
vga = []
Stefan Lankes's avatar
Stefan Lankes committed
25
network = ["smoltcp"]
26
newlib = []
27

28
[dependencies]
29
bitflags = "1.0.*"
30
#cfg-if = "0.1"
Stefan Lankes's avatar
Stefan Lankes committed
31
#byteorder = { version = "1.0", default-features = false }
Stefan Lankes's avatar
Stefan Lankes committed
32

33
[dependencies.log]
Stefan Lankes's avatar
Stefan Lankes committed
34
version = "0.3"
35
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
36
#features = ["release_max_level_info"]
37
38

[dependencies.smoltcp]
Stefan Lankes's avatar
Stefan Lankes committed
39
version = "0.5"
Stefan Lankes's avatar
Stefan Lankes committed
40
optional = true
Stefan Lankes's avatar
Stefan Lankes committed
41
#git = "https://github.com/hermitcore/smoltcp.git"
42
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
43
features = ["log", "verbose", "alloc", "socket-udp", "socket-tcp", "proto-ipv4"]
Stefan Lankes's avatar
Stefan Lankes committed
44
# for debugging: "log", "verbose"
45

46
[target.'cfg(target_arch = "x86_64")'.dependencies.hermit-multiboot]
47
git = "https://github.com/hermitcore/multiboot.git"
48

49
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
50
51
git = "https://github.com/hermitcore/rust-x86.git"
branch = "hermit"
52
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
53

54
55
56
[package.metadata.cargo-xbuild]
memcpy = true

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

# The release profile, used for `cargo build --release`.
[profile.release]
Stefan Lankes's avatar
Stefan Lankes committed
69
opt-level = 3
Stefan Lankes's avatar
Stefan Lankes committed
70
71
72
73
debug = false
rpath = false
lto = true
debug-assertions = false
74
panic = "abort"