Skip to content

Commit 4484f3c

Browse files
committed
style: format Cargo files
1 parent 5142a75 commit 4484f3c

3 files changed

Lines changed: 24 additions & 15 deletions

File tree

Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,12 @@ tcp = ["net", "smoltcp", "smoltcp/socket-tcp"]
156156
udp = ["net", "smoltcp", "smoltcp/socket-udp"]
157157

158158
## Enables DHCPv4 support.
159-
dhcpv4 = ["net", "smoltcp", "smoltcp/proto-dhcpv4", "smoltcp/socket-dhcpv4"]
159+
dhcpv4 = [
160+
"net",
161+
"smoltcp",
162+
"smoltcp/proto-dhcpv4",
163+
"smoltcp/socket-dhcpv4",
164+
]
160165

161166
## Enables DNS support.
162167
dns = ["net", "smoltcp", "smoltcp/socket-dns"]
@@ -280,7 +285,7 @@ vsock = ["virtio-vsock"]
280285

281286
[lints.rust]
282287
rust_2018_idioms = "warn"
283-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(careful)'] }
288+
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(careful)"] }
284289
unsafe_op_in_unsafe_fn = "warn"
285290

286291
[lints.clippy]
@@ -369,8 +374,8 @@ raw-cpuid = "11"
369374
uart_16550 = "0.4"
370375
x86_64 = "0.15"
371376
memory_addresses = { version = "0.3", default-features = false, features = [
372-
"x86_64",
373-
"conv-x86_64",
377+
"x86_64",
378+
"conv-x86_64",
374379
] }
375380

376381
[target.'cfg(target_arch = "aarch64")'.dependencies]
@@ -379,7 +384,7 @@ arm-gic = { version = "0.6" }
379384
arm-pl011-uart = { version = "0.4", default-features = false }
380385
semihosting = { version = "0.1", optional = true }
381386
memory_addresses = { version = "0.3", default-features = false, features = [
382-
"aarch64",
387+
"aarch64",
383388
] }
384389

385390
[target.'cfg(target_arch = "riscv64")'.dependencies]
@@ -389,7 +394,7 @@ semihosting = { version = "0.1", optional = true }
389394
tock-registers = { version = "0.10", optional = true }
390395
trapframe = "0.10"
391396
memory_addresses = { version = "0.3", default-features = false, features = [
392-
"riscv64",
397+
"riscv64",
393398
] }
394399

395400
[dev-dependencies]
@@ -402,13 +407,8 @@ built = { version = "0.8", features = ["git2", "chrono"] }
402407
llvm-tools = "0.1"
403408

404409
[workspace]
405-
members = [
406-
"hermit-macro",
407-
"xtask",
408-
]
409-
exclude = [
410-
"hermit-builtins",
411-
]
410+
members = ["hermit-macro", "xtask"]
411+
exclude = ["hermit-builtins"]
412412

413413
[patch.crates-io]
414414
safe-mmio = { git = "https://github.com/hermit-os/safe-mmio", branch = "be" }

hermit-macro/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[package]
22
name = "hermit-macro"
33
version = "0.1.0"
4-
authors = ["Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>"]
4+
authors = [
5+
"Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>",
6+
]
57
edition = "2024"
68
description = "Proc macro implementation to defined system calls"
79
repository = "https://github.com/hermit-os/kernel"

xtask/Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ edition = "2024"
55

66
[features]
77
default = ["ci"]
8-
ci = ["dep:libc", "dep:ovmf-prebuilt", "dep:sysinfo", "dep:ureq", "dep:vsock", "dep:wait-timeout"]
8+
ci = [
9+
"dep:libc",
10+
"dep:ovmf-prebuilt",
11+
"dep:sysinfo",
12+
"dep:ureq",
13+
"dep:vsock",
14+
"dep:wait-timeout",
15+
]
916

1017
[dependencies]
1118
anyhow = "1.0"

0 commit comments

Comments
 (0)