forked from hermit-os/loader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
40 lines (30 loc) · 1.1 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
[package]
name = "rusty-loader"
version = "0.2.6"
authors = ["Stefan Lankes <[email protected]>", "Colin Finck <[email protected]>"]
license = "MIT/Apache-2.0"
readme = "README.md"
edition = "2021"
[dependencies]
bitflags = "1.3"
goblin = { version = "0.4", default-features = false, features = ["elf64", "elf32", "endian_fd"] }
[target.'cfg(target_arch = "riscv64")'.dependencies]
hermit-dtb = {git = "https://github.com/simonschoening/dtb.git", branch = "master"}
[target.'cfg(target_arch = "riscv64")'.dependencies.riscv]
version = "0.7.0"
[target.'cfg(target_arch = "riscv64")'.dependencies.trapframe]
version = "0.8.0"
[target.'cfg(target_arch = "x86_64")'.dependencies]
multiboot = "0.7"
x86 = { version = "0.45", default-features = false }
[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64 = "0.0.7"
[build-dependencies]
target_build_utils = "0.3"
[profile.dev]
opt-level = 1 # `opt-level = 0` makes bootloader to large for bootstrapping
[profile.release]
lto = true
codegen-units = 1
[patch.crates-io]
trapframe = {git = "https://github.com/simonschoening/trapframe-rs.git"}