From 9c887d5428043bab7af259386d9bda5dd1fd59f8 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 6 Sep 2026 18:07:20 +0800 Subject: cleanup/fix: cargo --- kernel/.cargo/config.toml | 6 ++++++ kernel/Cargo.toml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 kernel/.cargo/config.toml (limited to 'kernel') diff --git a/kernel/.cargo/config.toml b/kernel/.cargo/config.toml new file mode 100644 index 0000000..3ec0bff --- /dev/null +++ b/kernel/.cargo/config.toml @@ -0,0 +1,6 @@ +[unstable] +build-std = ["core", "compiler_builtins", "alloc"] +build-std-features = ["compiler-builtins-mem"] + +[build] +target = "x86_64-unknown-none" diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index e1e5f5a..10b152b 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -6,6 +6,16 @@ edition = "2024" [dependencies] acpi = "6.1.1" atomic = "0.6.1" +bitflags = "2.13.1" bootloader_api = { git = "https://github.com/rust-osdev/bootloader" } +bytemuck = { version = "1.25.2", features = ["derive"] } linkme = "0.3.37" +spin = "0.12.3" uart_16550 = "0.8.0" + +[profile.dev] +debug = true +panic = "abort" + +[profile.release] +panic = "abort" -- cgit v1.2.3