Cargo.toml 1.81 KB
Newer Older
1
2
[package]
name = "hermit-rs"
Stefan Lankes's avatar
Stefan Lankes committed
3
version = "0.3.7"
4
authors = [
5
6
	"Stefan Lankes <slankes@eonerc.rwth-aachen.de>",
	"Colin Finck <colin.finck@rwth-aachen.de>"
7
]
8
9
10
11
12
13
license = "MIT/Apache-2.0"
readme = "README.md"
categories = ["no-std"]
description = """
A Rust-based, lightweight unikernel
"""
14
15
16
17

[lib]
crate-type = ["staticlib"]

18
19
20
21
[features]
#default = ["vga"]
vga = []

22
[dependencies]
23
bitflags = "1.0.*"
24
spin = "0.5"
Stefan Lankes's avatar
Stefan Lankes committed
25

26
27
28
[dependencies.log]
version = "0.4"
default-features = false
29
features = ["max_level_trace", "release_max_level_info"]
30
31
32
33
34
35
36

[dependencies.smoltcp]
git = "https://github.com/hermitcore/smoltcp.git"
branch = "hermit"
default-features = false
features = ["log", "alloc", "socket-raw", "socket-udp", "socket-tcp", "proto-ipv4", "proto-dhcpv4"]

37
[target.'cfg(target_arch = "x86_64")'.dependencies.hermit-multiboot]
38
git = "https://github.com/hermitcore/multiboot.git"
39

40
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
41
42
git = "https://github.com/hermitcore/rust-x86.git"
branch = "hermit"
43
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
44

45
46
47
[package.metadata.cargo-xbuild]
memcpy = true

Stefan Lankes's avatar
Stefan Lankes committed
48
49
# The development profile, used for `cargo build`.
[profile.dev]
50
opt-level = 1      # controls the `--opt-level` the compiler builds with
Stefan Lankes's avatar
Stefan Lankes committed
51
52
53
54
55
56
57
58
59
60
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`
lto = false        # controls `-C lto` for binaries and staticlibs
debug-assertions = true # controls whether debug assertions are enabled
codegen-units = 1  # controls whether the compiler passes `-C codegen-units`
                   # `codegen-units` is ignored when `lto = true`

# The release profile, used for `cargo build --release`.
[profile.release]
Stefan Lankes's avatar
Stefan Lankes committed
61
opt-level = 3
Stefan Lankes's avatar
Stefan Lankes committed
62
63
64
65
66
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1