repair broken things

master
Able 2022-01-01 20:39:57 -06:00
parent 611413dab1
commit bbe8743f77
No known key found for this signature in database
GPG Key ID: 2BB8F62388A6A225
4 changed files with 21 additions and 20 deletions

2
.cargo/config.toml Normal file
View File

@ -0,0 +1,2 @@
[build]
target = "wasm32-unknown-unknown"

8
Cargo.lock generated
View File

@ -2,6 +2,14 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "ableos-wasm-lib"
version = "0.1.0"
source = "git+https://github.com/ableos/ableos-wasm-lib.git#e8f49be85360a3371a8a0ffc215a0f570b0bc20c"
[[package]]
name = "ableos-wasm-test"
version = "0.1.0"
dependencies = [
"ableos-wasm-lib",
]

View File

@ -2,3 +2,8 @@
name = "ableos-wasm-test"
version = "0.1.0"
edition = "2018"
[dependencies.ableos-wasm-lib]
git = "https://github.com/ableos/ableos-wasm-lib.git"
version = "*"

View File

@ -1,28 +1,14 @@
#![no_std]
#![no_main]
extern "C" {
pub fn kill();
pub fn empty();
// pub fn exit();
}
use ableos_wasm_lib::*;
extern "C" fn console_out() {}
#[no_mangle]
extern "C" fn _start() {
extern "C" fn _start() -> i32 {
unsafe {
kill();
}
loop {}
main();
1
}
fn main() {
unsafe {
kill();
}
}
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}
use core::panic::PanicInfo;