first commit

This commit is contained in:
clizia 2025-08-23 02:35:47 +02:00
commit 071faa80e6
3 changed files with 40 additions and 0 deletions

11
.gitignore vendored Normal file
View file

@ -0,0 +1,11 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

12
Cargo.toml Normal file
View file

@ -0,0 +1,12 @@
[package]
name = "totos"
version = "0.1.0"
edition = "2024"
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[dependencies]

17
src/main.rs Normal file
View file

@ -0,0 +1,17 @@
#![no_std]
#![no_main]
use core::panic::PanicInfo;
// this function is the entry point since the linker
// looks for a function named `_start` by default
#[unsafe(no_mangle)]
pub extern "C" fn _start() -> ! {
loop{}
}
// called on panic
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}