Project Setup

This commit is contained in:
mindfreq 2026-04-12 21:34:33 +02:00
commit 91dfa3f73e
5 changed files with 48 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "rust-kernel"
version = "0.1.0"

19
Cargo.toml Normal file
View file

@ -0,0 +1,19 @@
[package]
name = "rust-kernel"
version = "0.1.0"
edition = "2024"
authors = ["Ahmed Nagi"]
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[[bin]]
name = "rust-kernel"
test = false
bench = false
[dependencies]

1
rust-toolchain Normal file
View file

@ -0,0 +1 @@
nightly

20
src/main.rs Normal file
View file

@ -0,0 +1,20 @@
#![no_std]
#![no_main]
#![unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
loop {
}
}
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {
}
}