@@ -40,7 +40,7 @@ storage-oss = ["opendal/services-oss"]
40
40
storage-s3 = [" opendal/services-s3" , " reqsign" ]
41
41
42
42
smol = [" dep:smol" ]
43
- tokio = [" tokio/rt-multi-thread " ]
43
+ tokio = []
44
44
45
45
[dependencies ]
46
46
anyhow = { workspace = true }
@@ -74,8 +74,8 @@ opendal = { workspace = true }
74
74
ordered-float = { workspace = true }
75
75
parquet = { workspace = true , features = [" async" ] }
76
76
rand = { workspace = true }
77
- reqwest = { workspace = true }
78
77
reqsign = { version = " 0.16.3" , optional = true , default-features = false }
78
+ reqwest = { workspace = true }
79
79
roaring = { workspace = true }
80
80
rust_decimal = { workspace = true }
81
81
serde = { workspace = true }
@@ -87,7 +87,6 @@ serde_with = { workspace = true }
87
87
smol = { workspace = true , optional = true }
88
88
strum = { workspace = true , features = [" derive" ] }
89
89
thrift = { workspace = true }
90
- tokio = { workspace = true , optional = false , features = [" sync" ] }
91
90
typed-builder = { workspace = true }
92
91
url = { workspace = true }
93
92
uuid = { workspace = true }
@@ -104,6 +103,15 @@ regex = { workspace = true }
104
103
tempfile = { workspace = true }
105
104
tera = { workspace = true }
106
105
106
+ [target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
107
+ tokio = { workspace = true , optional = false , features = [
108
+ " rt-multi-thread" ,
109
+ " sync" ,
110
+ ] }
111
+
112
+ [target .'cfg(target_arch = "wasm32")' .dependencies ]
113
+ tokio = { workspace = true , optional = false , features = [" rt" , " sync" ] }
114
+
107
115
[package .metadata .cargo-machete ]
108
116
# These dependencies are added to ensure minimal dependency version
109
117
ignored = [" tap" ]
0 commit comments