Cargo.toml 2.17 KB
Newer Older
1
[package]
2
name = "hermit"
Stefan Lankes's avatar
Stefan Lankes committed
3
version = "0.3.9"
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
11
12
13
14
license = "MIT/Apache-2.0"
readme = "README.md"
categories = ["no-std"]
description = """
A Rust-based, lightweight unikernel
"""
15
16
17
18

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

19
20
21
[features]
#default = ["vga"]
vga = []
Stefan Lankes's avatar
Stefan Lankes committed
22
rustc-dep-of-std = [] #"core", "compiler_builtins/rustc-dep-of-std"]
23

24
[dependencies]
Stefan Lankes's avatar
Stefan Lankes committed
25
26
#core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
#compiler_builtins = { version = "0.1.0", optional = true }
27
bitflags = "1.0.*"
28
spin = "0.5"
Stefan Lankes's avatar
Stefan Lankes committed
29
#byteorder = { version = "1.0", default-features = false }
Stefan Lankes's avatar
Stefan Lankes committed
30

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

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

43
[target.'cfg(target_arch = "x86_64")'.dependencies.hermit-multiboot]
44
git = "https://github.com/hermitcore/multiboot.git"
45

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

51
52
53
[package.metadata.cargo-xbuild]
memcpy = true

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

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