summaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml16
1 files changed, 16 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index cf18339..0cc785d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -5,3 +5,19 @@ members = ["rsnix", "shell", "rsdos", "rsdosedit"]
5[workspace.package] 5[workspace.package]
6version = "0.2.0" 6version = "0.2.0"
7edition = "2021" 7edition = "2021"
8
9# no_std UEFI kernel: no unwinder available, so panic must abort.
10# (Also makes bare `cargo check`/`cargo build` without --target work.)
11[profile.dev]
12panic = "abort"
13
14[profile.release]
15panic = "abort"
16
17# Deliberate kernel style, keep clippy quiet without rewriting hot paths:
18# - `Result<_, ()>` is the internal error idiom everywhere (fs/fat/ahci)
19# - indexed loops over static buffers are clearer in kernel code (and
20# iterator rewrites would recreate `static_mut_refs` references)
21[workspace.lints.clippy]
22result_unit_err = "allow"
23needless_range_loop = "allow"