Snake and hello apps now use extern crate userspace_rt — no more boilerplate assembly or panic handlers in app code.
10 lines
150 B
Rust
10 lines
150 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
extern crate userspace_rt;
|
|
|
|
#[unsafe(no_mangle)]
|
|
extern "C" fn main() {
|
|
// The runtime handles _start, exit, and panic.
|
|
}
|