Minor work on the eventual crate
This commit is contained in:
commit
611413dab1
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/target
|
7
Cargo.lock
generated
Normal file
7
Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "ableos-wasm-test"
|
||||
version = "0.1.0"
|
4
Cargo.toml
Normal file
4
Cargo.toml
Normal file
|
@ -0,0 +1,4 @@
|
|||
[package]
|
||||
name = "ableos-wasm-test"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
2
README.md
Normal file
2
README.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
# General setup
|
||||
`rustup target add wasm32-unknown-unknown`
|
28
src/main.rs
Normal file
28
src/main.rs
Normal file
|
@ -0,0 +1,28 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
extern "C" {
|
||||
pub fn kill();
|
||||
pub fn empty();
|
||||
// pub fn exit();
|
||||
}
|
||||
#[no_mangle]
|
||||
extern "C" fn _start() {
|
||||
unsafe {
|
||||
kill();
|
||||
}
|
||||
loop {}
|
||||
main();
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
kill();
|
||||
}
|
||||
}
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(_info: &PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
use core::panic::PanicInfo;
|
Loading…
Reference in a new issue