diff --git a/lib/commands/new_command.ts b/lib/commands/new_command.ts index 87f059e..bb1fdf1 100644 --- a/lib/commands/new_command.ts +++ b/lib/commands/new_command.ts @@ -67,7 +67,7 @@ version = "0.0.0" edition = "2021" [lib] -crate_type = ["cdylib"] +crate-type = ["cdylib"] [dependencies] wasm-bindgen = "=${versions["wasm-bindgen"]}" diff --git a/lib/wasmbuild.generated.js b/lib/wasmbuild.generated.js index ac761ad..14bc0ad 100644 --- a/lib/wasmbuild.generated.js +++ b/lib/wasmbuild.generated.js @@ -4,7 +4,7 @@ // deno-fmt-ignore-file /// -// source-hash: f77af3df6218639fb8de4d6ff19ef83682d20535 +// source-hash: 8e05280b56b884c7e72aae8b32cb34631568431f let wasm; const heap = new Array(128).fill(undefined); @@ -201,6 +201,9 @@ const imports = { const ret = getStringFromWasm0(arg0, arg1); return addHeapObject(ret); }, + __wbindgen_object_drop_ref: function (arg0) { + takeObject(arg0); + }, __wbindgen_is_string: function (arg0) { const ret = typeof (getObject(arg0)) === "string"; return ret; @@ -209,9 +212,6 @@ const imports = { const ret = new Error(getStringFromWasm0(arg0, arg1)); return addHeapObject(ret); }, - __wbindgen_object_drop_ref: function (arg0) { - takeObject(arg0); - }, __wbindgen_object_clone_ref: function (arg0) { const ret = getObject(arg0); return addHeapObject(ret); diff --git a/lib/wasmbuild_bg.wasm b/lib/wasmbuild_bg.wasm index 18add0c..e69b88e 100644 Binary files a/lib/wasmbuild_bg.wasm and b/lib/wasmbuild_bg.wasm differ diff --git a/rs_lib/Cargo.toml b/rs_lib/Cargo.toml index 0e3045d..cbd4ffe 100644 --- a/rs_lib/Cargo.toml +++ b/rs_lib/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.1" edition = "2021" [lib] -crate_type = ["cdylib"] +crate-type = ["cdylib"] [dependencies] anyhow = "=1.0.79" @@ -13,4 +13,4 @@ serde = { version = "1.0.196", features = ["derive", "rc"] } # make sure to update the version in lib/versions.ts to match this version wasm-bindgen = "=0.2.92" wasm-bindgen-cli-support = "=0.2.92" -serde-wasm-bindgen = "=0.6.3" \ No newline at end of file +serde-wasm-bindgen = "=0.6.3" diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 24c012c..6b19829 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -10,5 +10,5 @@ wasm-bindgen = "0.2.90" [lib] name = "deno_test" -crate_type = ["cdylib"] +crate-type = ["cdylib"] path = "lib.rs"