From 3642f6ec233cbcf97f63246e6fdb476e0473db2b Mon Sep 17 00:00:00 2001 From: Darius Clark Date: Thu, 3 Oct 2024 22:14:32 -0500 Subject: [PATCH] fix: enable "wasm-bindgen" feature for `instant` when building wasm32 (#312) --- CHANGELOG.md | 2 ++ Cargo.lock | 6 +++++- Cargo.toml | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d45d8f6c..ff5180951 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# 0.12.1 +- fix: enable "wasm-bindgen" feature for `instant` when building wasm32 target. # 0.12.0 - chore: Cleanup Keystore logic and implementation. [PR 222](https://github.com/dariusc93/rust-ipfs/pull/222) diff --git a/Cargo.lock b/Cargo.lock index c372ccc72..9e4acae30 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2191,6 +2191,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ "cfg-if", + "js-sys", + "wasm-bindgen", + "web-sys", ] [[package]] @@ -4394,7 +4397,7 @@ dependencies = [ [[package]] name = "rust-ipfs" -version = "0.12.0" +version = "0.12.1" dependencies = [ "anyhow", "async-stream", @@ -4417,6 +4420,7 @@ dependencies = [ "hkdf", "idb", "indexmap", + "instant", "ipld-core", "ipld-dagpb", "libp2p", diff --git a/Cargo.toml b/Cargo.toml index b9b93b533..6a8f5f09f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ name = "rust-ipfs" readme = "README.md" repository = "https://github.com/dariusc93/rust-ipfs" description = "IPFS node implementation" -version = "0.12.0" +version = "0.12.1" [features] default = [] @@ -165,6 +165,7 @@ tokio = { default-features = false, features = ["sync", "macros"], workspace = t tokio-stream = { workspace = true, default-features = false } tokio-util = { workspace = true, default-features = false } wasm-bindgen-futures.workspace = true +instant = { version = "0.1.13", features = ["wasm-bindgen"] } [dev-dependencies] criterion = { default-features = false, version = "0.5" }