-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCargo.toml
53 lines (42 loc) · 1.13 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
[package]
name = "polyhal"
version = "0.1.3"
edition = "2021"
description = "This crate provides the interface for multiple platforms."
authors = ["yfblock@[email protected]"]
license = "MIT"
repository = "https://github.com/Byte-OS/polyhal"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
trap = []
boot = []
logger = []
graphic = []
default = ["boot"]
[dependencies]
log = "0.4"
fdt = "0.1.5"
bitflags = "2.0.2"
cfg-if = "1.0.0"
polyhal-macro = "0.1.3"
spin = { version = "0.9.8", features = ["mutex"] }
[target.'cfg(target_arch = "riscv64")'.dependencies]
riscv = "0.11.0"
sbi-rt = { version = "0.0.2", features = ["legacy"] }
[target.'cfg(target_arch = "x86_64")'.dependencies]
x86 = "0.52"
x86_64 = "0.14"
multiboot = "0.8.0"
x2apic = "0.4"
raw-cpuid = "11.0"
[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64-cpu = "9.3"
arm_pl011 = "0.1.0"
tock-registers = "0.8"
arm_gicv2 = "0.1.0"
[target.'cfg(target_arch = "loongarch64")'.dependencies]
loongArch64 = "0.2.4"
[dev-dependencies]
buddy_system_allocator = "0.9.1"
[patch.crates-io.polyhal-macro]
path = "polyhal-macro"