Skip to content

Release new version to crates.io #78

Closed
@12101111

Description

@12101111

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions