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

refactor!: avoid hard dep to tokio rt #4061

Merged
merged 8 commits into from
Jan 24, 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
168 changes: 84 additions & 84 deletions bindings/c/Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bindings/c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ crate-type = ["cdylib", "staticlib"]
doc = false

[build-dependencies]
cbindgen = "0.25.0"
cbindgen = "0.26.0"

[dependencies]
bytes = "1.4.0"
once_cell = "1.17.1"
opendal = { path = "../../core" }
opendal = { path = "../../core", features = ["layers-blocking"] }
tokio = { version = "1.27", features = ["fs", "macros", "rt-multi-thread"] }
3 changes: 1 addition & 2 deletions bindings/c/include/opendal.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ typedef struct BlockingLister BlockingLister;
*
* Read more backend init examples in [`services`]
*
* ```
* ```rust
* # use anyhow::Result;
* use opendal::services::Fs;
* use opendal::BlockingOperator;
Expand All @@ -121,7 +121,6 @@ typedef struct BlockingLister BlockingLister;
* Some services like s3, gcs doesn't have native blocking supports, we can use [`layers::BlockingLayer`]
* to wrap the async operator to make it blocking.
*
* ```rust
tisonkun marked this conversation as resolved.
Show resolved Hide resolved
* # use anyhow::Result;
* use opendal::layers::BlockingLayer;
* use opendal::services::S3;
Expand Down
3 changes: 1 addition & 2 deletions bindings/java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ crate-type = ["cdylib"]
doc = false

[features]
# Enable all opendal default feature by default.
default = [
"services-azblob",
"services-azdls",
Expand Down Expand Up @@ -153,7 +152,7 @@ anyhow = "1.0.71"
jni = "0.21.1"
num_cpus = "1.15.0"
once_cell = "1.19.0"
opendal = { workspace = true }
opendal = { workspace = true, features = ["layers-blocking"] }
tokio = { version = "1.28.1", features = ["full"] }

# This is not optimal. See also the Cargo issue:
Expand Down
3 changes: 1 addition & 2 deletions bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ rust-version.workspace = true
version.workspace = true

[features]
# Enable all opendal default feature by default.
default = [
"services-azblob",
"services-azdls",
Expand Down Expand Up @@ -154,7 +153,7 @@ napi = { version = "2.11.3", default-features = false, features = [
"async",
] }
napi-derive = "2.14.6"
opendal.workspace = true
opendal = { workspace = true, features = ["layers-blocking"] }
tokio = "1"

[build-dependencies]
Expand Down
Loading
Loading