Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cargo warning #142

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/commands/new_command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ version = "0.0.0"
edition = "2021"

[lib]
crate_type = ["cdylib"]
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = "=${versions["wasm-bindgen"]}"
Expand Down
8 changes: 4 additions & 4 deletions lib/wasmbuild.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// deno-fmt-ignore-file
/// <reference types="./wasmbuild.generated.d.ts" />

// source-hash: f77af3df6218639fb8de4d6ff19ef83682d20535
// source-hash: 8e05280b56b884c7e72aae8b32cb34631568431f
let wasm;

const heap = new Array(128).fill(undefined);
Expand Down Expand Up @@ -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;
Expand All @@ -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);
Expand Down
Binary file modified lib/wasmbuild_bg.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions rs_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.1"
edition = "2021"

[lib]
crate_type = ["cdylib"]
crate-type = ["cdylib"]

[dependencies]
anyhow = "=1.0.79"
Expand All @@ -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"
serde-wasm-bindgen = "=0.6.3"
2 changes: 1 addition & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ wasm-bindgen = "0.2.90"

[lib]
name = "deno_test"
crate_type = ["cdylib"]
crate-type = ["cdylib"]
path = "lib.rs"