Merge branch 'feature/binary' into develop

Create binary
This commit is contained in:
Ruidy 2021-04-24 17:25:14 +02:00
commit 7841efad60
3 changed files with 16 additions and 5 deletions

2
Cargo.lock generated
View file

@ -1,5 +1,5 @@
# This file is automatically @generated by Cargo. # This file is automatically @generated by Cargo.
# It is not intended for manual editing. # It is not intended for manual editing.
[[package]] [[package]]
name = "rouilleOS" name = "rouille_os"
version = "0.1.0" version = "0.1.0"

View file

@ -1,9 +1,14 @@
[package] [package]
name = "rouilleOS" name = "rouille_os"
version = "0.1.0" version = "0.1.0"
authors = ["Ruidy <ruidy.nemausat@gmail.com>"] authors = ["Ruidy <ruidy.nemausat@gmail.com>"]
edition = "2018" edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
[profile.dev]
panic = "abort" # disable stack unwinding on panic
[profile.release]
panic = "abort" # disable stack unwinding on panic

View file

@ -1,8 +1,14 @@
#![no_std] #![no_std]
#![no_main]
use core::panic::PanicInfo; 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. /// Function called on panic. It is a diverging function with a `never` return type.
/// ///
/// # Arguments /// # Arguments