Closed
Description
Summary
Current version in crates.io have a link error while using the recent rust nightly.
#56 fix this problem
Steps to Reproduce
lib.rs:
use wasm_bindgen::prelude::*;
use web_sys::console;
#[wasm_bindgen]
pub fn init() {
console::log_1(&format!("it run").into());
}
#[global_allocator]
static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT;
Cargo.toml
[dependencies]
wasm-bindgen = "0.2"
wee_alloc = "0.4.2"
[dependencies.web-sys]
version = "0.3"
features = ["console"]
Actual Results
ERROR in ./pkg/wasm_test_bg.wasm
Module not found: Error: Can't resolve 'env' in '/mnt/g/project/wasm_test/pkg'
@ ./pkg/wasm_test_bg.wasm
@ ./pkg/wasm_test.js
@ ./index.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./index.js
in wasm file
(import "env" "llvm.wasm.grow.memory.i32" (func $llvm.wasm.grow.memory.i32 (type $t2)))
Expected Results
Release a new version to crates.io
Metadata
Metadata
Assignees
Labels
No labels