Skip to content

Commit

Permalink
Fix wasm compilation, bump wasm-bindgen (#2221)
Browse files Browse the repository at this point in the history
* Fix wasm compilation, bump wasm-bindgen

* Update dependencies
  • Loading branch information
Thoralf-M authored Apr 16, 2024
1 parent 8dd0d73 commit fba9feb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bindings-wasm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install wasm-bindgen-cli
uses: jetli/[email protected]
with:
version: "0.2.91"
version: "0.2.92"

- name: Set up Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/bindings-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Install wasm-bindgen-cli
uses: jetli/[email protected]
with:
version: "0.2.91"
version: "0.2.92"

- name: Set Up Node.js ${{ matrix.node }} and Yarn Cache
uses: actions/setup-node@v3
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ js-sys = { version = "0.3.68", default-features = false, features = [] }
log = { version = "0.4.20", default-features = false }
serde_json = { version = "1.0.113", default-features = false }
tokio = { version = "1.36.0", default-features = false, features = ["sync"] }
wasm-bindgen = { version = "0.2.91", default-features = false, features = [
wasm-bindgen = { version = "0.2.92", default-features = false, features = [
"spans",
"std",
"serde-serialize",
Expand Down
3 changes: 2 additions & 1 deletion sdk/src/client/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ pub struct ClientInner {
pub(crate) request_pool: RequestPool,
}

#[cfg(not(target_family = "wasm"))]
#[derive(Default)]
pub(crate) struct SyncHandle(pub(crate) Option<tokio::task::JoinHandle<()>>);

#[cfg(not(target_family = "wasm"))]
impl Drop for SyncHandle {
fn drop(&mut self) {
#[cfg(not(target_family = "wasm"))]
if let Some(sync_handle) = self.0.take() {
sync_handle.abort();
}
Expand Down

0 comments on commit fba9feb

Please sign in to comment.