Add first user program hello_world.rs
This commit is contained in:
parent
d2c0be3dd0
commit
a97d4e82a5
79 changed files with 343 additions and 0 deletions
11
user/src/bin/hello_world.rs
Normal file
11
user/src/bin/hello_world.rs
Normal file
|
@ -0,0 +1,11 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
#[macro_use]
|
||||
extern crate user_lib;
|
||||
|
||||
#[no_mangle]
|
||||
fn main() -> i32 {
|
||||
println!("Hello, world!");
|
||||
0
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue