This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
/
Cargo.toml
127 lines (105 loc) · 2.81 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[package]
name = "nebulet"
version = "0.1.0"
authors = ["Lachlan Sneff <lachlan.sneff@gmail.com>"]
[package.metadata.bootimage]
default-target = "x86_64-nebulet.json"
output = "bootimage.bin"
run-command = [
"qemu-system-x86_64",
"-machine", "q35,accel=kvm:xen:hax:tcg",
"-drive", "format=raw,file={}"
]
package-file = "initfs.tar"
[package.metadata.cargo-xbuild]
memcpy = true
[package.metadata.bootimage.bootloader]
name = "bootloader"
target = "x86_64-bootloader.json"
[profile.release]
lto = true
panic = "abort"
opt-level = 3
[profile.dev]
debug-assertions = true
panic = "abort"
opt-level = 3
[workspace]
members = [
"tools",
"lib/nebulet-derive",
]
exclude = [
"target/x86_64-nebulet/release/bootloader",
"target/x86_64-nebulet/debug/bootloader",
"userspace",
]
[features]
default = ["vga", "serial"]
vga = [] # log to vga
serial = [] # log to serial
# Sources that may be trusted for providing entropy
# None of them are trusted by default
# The first working, trusted source will be used to seed,
# and periodically reseed, a CPRNG.
# http://blog.cr.yp.to/20140205-entropy.html
virtio_entropy = []
rdseed_entropy = []
jitter_entropy = []
rdrand_entropy = []
[dependencies]
# the actual bootloader
bootloader = { git = "https://github.com/lachlansneff/bootloader", branch = "bootinfo" }
# regular dependencies
spin = "0.4.9"
bitflags = "1.0"
bit_field = "0.9.0"
hashmap_core = "0.1.8"
acpi = { git = "https://github.com/rust-osdev/acpi" }
# lib/
[dependencies.nebulet-derive]
path = "lib/nebulet-derive"
[dependencies.lazy_static]
version = "1.0.0"
features = ["spin_no_std"]
[dependencies.rand_core]
version = "0.2"
default-features = false
[dependencies.rand]
version = "0.5"
default-features = false
[dependencies.raw-cpuid]
version = "3.1.0"
features = ["nightly"]
[dependencies.nebulet_abi]
git = "https://github.com/nebulet/abi"
# Cranelift compiler
[dependencies.target-lexicon]
version = "0.0.3"
default-features = false
[dependencies.cranelift-codegen]
version = "0.18.1"
default-features = false
features = ["core"]
[dependencies.cranelift-frontend]
version = "0.18.1"
default-features = false
features = ["core"]
[dependencies.cranelift-wasm]
version = "0.18.1"
default-features = false
features = ["core"]
[dependencies.cranelift-native]
version = "0.18.1"
default-features = false
features = ["core"]
[dependencies.wasmparser]
version = "0.17.2"
default_features = false
features = ["core"]
# [replace]
# "hashmap_core:0.1.8" = { git = "https://github.com/lachlansneff/hashmap_core" }
# "cranelift-codegen:0.13.0" = { git = "https://github.com/nebulet/cranelift", branch = "broken-no_std"}
# "cranelift-native:0.13.0" = { git = "https://github.com/nebulet/cranelift", branch = "broken-no_std" }
# "raw-cpuid:4.0.0" = { path = "../rust-cpuid" }
# "hashmap_core:0.1.7" = { path = "../hashmap_core" }