Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
chore: async compat to tokio utils (#725)
Browse files Browse the repository at this point in the history
* chore: consolidate on tokio-util for stream compat; async-compat@0.2.3 has issues with wasm32

* chore: Use explicit version for `subtext` package

* chore: Update Cargo.lock

---------

Co-authored-by: Christopher Joel <240083+cdata@users.noreply.github.com>
Co-authored-by: Chris Joel <0xcda7a@gmail.com>
  • Loading branch information
3 people authored Jan 16, 2024
1 parent f8dd752 commit 5f67c26
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 23 deletions.
22 changes: 4 additions & 18 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ serde_urlencoded = { version = "~0.7" }
serde-wasm-bindgen = { version = "0.4" }
strum = { version = "0.25" }
strum_macros = { version = "0.25" }
subtext = { version = "0.3.4" }
subtext = { version = "0.3.5" }
symlink = { version = "0.1" }
tempfile = { version = "^3" }
thiserror = { version = "1" }
Expand Down
3 changes: 1 addition & 2 deletions rust/noosphere-into/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ readme = "README.md"
[dependencies]
noosphere-core = { version = "0.18.0", path = "../noosphere-core" }
noosphere-storage = { version = "0.10.0", path = "../noosphere-storage" }
subtext = { version = "0.3.2", features = ["stream"] }
subtext = { workspace = true, features = ["stream"] }
async-trait = "~0.1"
url = { workspace = true }
tracing = { workspace = true }
Expand All @@ -36,7 +36,6 @@ tokio = { workspace = true, features = ["io-util", "macros", "test-util"] }

async-stream = { workspace = true }
futures = { workspace = true }
async-compat = { version = "~0.2" }
async-utf8-decoder = { version = "~0.3" }

ucan = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ipfs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ test-kubo = []

[dependencies]
anyhow = { workspace = true }
async-compat = { version = "~0.2" }
async-trait = "~0.1"
async-stream = { workspace = true }
libipld-core = { workspace = true }
Expand All @@ -37,6 +36,7 @@ serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true, features = ["io-util"] }
tokio-stream = { workspace = true }
tokio-util = { workspace = true, features = ["compat"] }
tracing = { workspace = true }
url = { workspace = true, features = [ "serde" ] }
noosphere-storage = { version = "0.10.0", path = "../noosphere-storage" }
Expand Down
2 changes: 1 addition & 1 deletion rust/noosphere-ipfs/src/client/kubo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use super::{IpfsClient, IpfsClientAsyncReadSendSync};
use async_trait::async_trait;

use anyhow::{anyhow, Result};
use async_compat::CompatExt;
use cid::Cid;
use hyper::{
client::connect::dns::GaiResolver, client::HttpConnector, Body, Client, Request, StatusCode,
};
use hyper_multipart_rfc7578::client::multipart::{Body as MultipartBody, Form};
use tokio_util::compat::TokioAsyncReadCompatExt;
// TODO(#587): Remove dependency on `ipfs-api` crate
use ipfs_api_prelude::response::{PinAddResponse, PinLsResponse};
use libipld_cbor::DagCborCodec;
Expand Down

0 comments on commit 5f67c26

Please sign in to comment.