mirror of
https://github.com/mindfreq/rust-kernel.git
synced 2026-05-13 09:51:10 +00:00
Project Setup
This commit is contained in:
commit
91dfa3f73e
5 changed files with 48 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/target
|
||||
7
Cargo.lock
generated
Normal file
7
Cargo.lock
generated
Normal 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
19
Cargo.toml
Normal 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
1
rust-toolchain
Normal file
|
|
@ -0,0 +1 @@
|
|||
nightly
|
||||
20
src/main.rs
Normal file
20
src/main.rs
Normal 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 {
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue