Skip to content

Commit

Permalink
behind a feature flag
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Jan 23, 2024
1 parent 31d1455 commit 9e91d97
Show file tree
Hide file tree
Showing 13 changed files with 457 additions and 461 deletions.
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
* # use anyhow::Result;
* use opendal::layers::BlockingLayer;
* use opendal::services::S3;
Expand Down
5 changes: 4 additions & 1 deletion bindings/java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ crate-type = ["cdylib"]
doc = false

[features]
# Enable all opendal default feature by default.
default = [
# Enable all opendal default feature by default.
"services-azblob",
"services-azdls",
"services-cos",
Expand All @@ -48,6 +48,9 @@ default = [
"services-s3",
"services-webdav",
"services-webhdfs",

# Enable blocking layer for blocking ops support.
"opendal/layers-blocking",
]

services-all = [
Expand Down
5 changes: 4 additions & 1 deletion bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ rust-version.workspace = true
version.workspace = true

[features]
# Enable all opendal default feature by default.
default = [
# Enable all opendal default feature by default.
"services-azblob",
"services-azdls",
"services-cos",
Expand All @@ -44,6 +44,9 @@ default = [
"services-s3",
"services-webdav",
"services-webhdfs",

# Enable blocking layer for blocking ops support.
"opendal/layers-blocking",
]

services-all = [
Expand Down
Loading

0 comments on commit 9e91d97

Please sign in to comment.