Skip to content

Commit 687d857

Browse files
Change tokio feature (#1173)
## What changes are included in this PR? Changes tokio dependency, enable `sync` feature only by default, but requires `full` feature when we enable `tokio` cfg. With this change, we can still use tokio's runtime indepdenent utils, while only rely on tokio's runtime when we enable `tokio` cfg. ## Are these changes tested? CI. --------- Signed-off-by: Ray Liu <[email protected]>
1 parent d7e2685 commit 687d857

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/iceberg/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ storage-s3 = ["opendal/services-s3"]
3838
storage-gcs = ["opendal/services-gcs"]
3939

4040
async-std = ["dep:async-std"]
41-
tokio = ["dep:tokio"]
41+
tokio = ["tokio/rt-multi-thread"]
4242

4343
[dependencies]
4444
anyhow = { workspace = true }
@@ -80,7 +80,7 @@ serde_json = { workspace = true }
8080
serde_repr = { workspace = true }
8181
serde_with = { workspace = true }
8282
thrift = { workspace = true }
83-
tokio = { workspace = true, optional = true, features = ["sync"] }
83+
tokio = { workspace = true, optional = false, features = ["sync"] }
8484
typed-builder = { workspace = true }
8585
url = { workspace = true }
8686
uuid = { workspace = true }

0 commit comments

Comments
 (0)