ch1: Remove std

This commit is contained in:
Tateisi 2025-08-02 13:48:14 +08:00
parent c1084cd578
commit ad42f53386
4 changed files with 16 additions and 3 deletions

2
.cargo/config.toml Normal file
View file

@ -0,0 +1,2 @@
[build]
target = "riscv64gc-unknown-none-elf"

4
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,4 @@
{
"rust-analyzer.checkOnSave": true,
"rust-analyzer.cargo.allTargets": false
}

6
src/lang_items.rs Normal file
View file

@ -0,0 +1,6 @@
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}

View file

@ -1,3 +1,4 @@
fn main() {
println!("Hello, world!");
}
#![no_std]
#![no_main]
mod lang_items;