Cargo.toml 1.43 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
]

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

12
13
14
15
[features]
#default = ["vga"]
vga = []

16
[dependencies]
17
bitflags = "1.0.3"
18
spin = "0.4.9"
Stefan Lankes's avatar
Stefan Lankes committed
19

20
[target.'cfg(target_arch = "x86_64")'.dependencies.hermit-multiboot]
21
git = "https://github.com/hermitcore/multiboot.git"
22

23
[dependencies.lazy_static]
24
version = "1.0.1"
25
features = ["spin_no_std"]
Stefan Lankes's avatar
Stefan Lankes committed
26

27
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
28
29
git = "https://github.com/hermitcore/rust-x86.git"
branch = "hermit"
30
default-features = false
Stefan Lankes's avatar
Stefan Lankes committed
31

32
33
34
[package.metadata.cargo-xbuild]
memcpy = true

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