Minor work on the eventual crate

master
Able 2021-11-14 21:52:19 -06:00
commit 611413dab1
5 changed files with 42 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View 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
View File

@ -0,0 +1,4 @@
[package]
name = "ableos-wasm-test"
version = "0.1.0"
edition = "2018"

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# General setup
`rustup target add wasm32-unknown-unknown`

28
src/main.rs Normal file
View 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;