mirror of
https://github.com/rjNemo/rouille_os
synced 2026-06-06 02:26:46 +00:00
Merge branch 'feature/binary' into develop
Create binary
This commit is contained in:
commit
7841efad60
3 changed files with 16 additions and 5 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -1,5 +1,5 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
[[package]]
|
||||
name = "rouilleOS"
|
||||
name = "rouille_os"
|
||||
version = "0.1.0"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,14 @@
|
|||
[package]
|
||||
name = "rouilleOS"
|
||||
name = "rouille_os"
|
||||
version = "0.1.0"
|
||||
authors = ["Ruidy <ruidy.nemausat@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
||||
[profile.dev]
|
||||
panic = "abort" # disable stack unwinding on panic
|
||||
|
||||
[profile.release]
|
||||
panic = "abort" # disable stack unwinding on panic
|
||||
10
src/main.rs
10
src/main.rs
|
|
@ -1,8 +1,14 @@
|
|||
#![no_std]
|
||||
|
||||
#![no_main]
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
fn main() {}
|
||||
/// Disabling mangling ensures the compiler returns a function named `_start`
|
||||
///
|
||||
/// We tell the compiler to use `C calling convention`
|
||||
#[no_mangle]
|
||||
pub extern "C" fn _start() -> ! {
|
||||
loop {}
|
||||
}
|
||||
/// Function called on panic. It is a diverging function with a `never` return type.
|
||||
///
|
||||
/// # Arguments
|
||||
|
|
|
|||
Loading…
Reference in a new issue