Cargo.toml 1.56 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
[target.'cfg(target_arch = "x86_64")'.dependencies.hermit-multiboot]
27
git = "https://github.com/hermitcore/multiboot.git"
28

29
30
31
#[dependencies.lazy_static]
#version = "1.0.1"
#features = ["spin_no_std"]
Stefan Lankes's avatar
Stefan Lankes committed
32

33
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
34
35
git = "https://github.com/hermitcore/rust-x86.git"
branch = "hermit"
36
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
37

38
39
40
[package.metadata.cargo-xbuild]
memcpy = true

Stefan Lankes's avatar
Stefan Lankes committed
41
42
# The development profile, used for `cargo build`.
[profile.dev]
43
opt-level = 1      # controls the `--opt-level` the compiler builds with
Stefan Lankes's avatar
Stefan Lankes committed
44
45
46
47
48
49
50
51
52
53
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
54
opt-level = 3
Stefan Lankes's avatar
Stefan Lankes committed
55
56
57
58
59
debug = false
rpath = false
lto = true
debug-assertions = false
codegen-units = 1