From 9553d9d8beca4f1f0283255827c5aa00992fb028 Mon Sep 17 00:00:00 2001 From: Christopher McIntyre Date: Mon, 17 Dec 2018 15:23:31 +0000 Subject: [PATCH] bugfix: #[wasm_import_module] as #[link(...)] --- Cargo.toml | 2 +- src/lib.rs | 2 -- src/raw.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c83ec2a..29cb7a1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cwa" -version = "0.1.0" +version = "0.1.1" authors = ["losfair "] description = "Common WebAssembly API library" license = "MIT" diff --git a/src/lib.rs b/src/lib.rs index 2ae020e..ac36a8f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,5 @@ //! Rust API library for the [CommonWA specification](https://github.com/CommonWA/cwa-spec). -#![feature(wasm_import_module)] - #[macro_use] mod utils; diff --git a/src/raw.rs b/src/raw.rs index c51cd48..285d3bb 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -1,4 +1,4 @@ -#[wasm_import_module = "cwa"] +#[link(wasm_import_module = "cwa")] extern "C" { pub fn log_write(level: i32, text_ptr: *const u8, text_len: usize); pub fn env_get(