Skip to content

Commit 632134f

Browse files
authored
chore: add workspace deps (#251)
1 parent 511d7ac commit 632134f

9 files changed

Lines changed: 107 additions & 83 deletions

File tree

Cargo.toml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ members = [
44
"examples/opfs",
55
"fusio",
66
"fusio-core",
7+
"fusio-manifest",
78
"fusio-object-store",
89
"fusio-opendal",
910
"fusio-parquet",
10-
"fusio-manifest",
1111
]
1212
resolver = "2"
1313

@@ -18,13 +18,40 @@ repository = "https://github.com/tonbo-io/fusio"
1818
version = "0.4.3"
1919

2020
[workspace.dependencies]
21-
bytes = { version = "1.7" }
21+
# Internal crates
22+
fusio = { version = "0.4.3", path = "fusio", default-features = false }
23+
fusio-core = { version = "0.4.3", path = "fusio-core" }
24+
fusio-opendal = { version = "0.4.3", path = "fusio-opendal" }
25+
fusio-parquet = { version = "0.4.3", path = "fusio-parquet" }
26+
27+
# External dependencies
28+
arrow = { version = "56" }
29+
async-stream = { version = "0.3" }
30+
bytes = { version = "1.7", default-features = false }
31+
cfg-if = { version = "1.0.0" }
32+
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
33+
futures = { version = "0.3" }
34+
futures-channel = { version = "0.3" }
2235
futures-core = { version = "0.3" }
36+
futures-executor = { version = "0.3" }
2337
futures-util = { version = "0.3" }
38+
js-sys = { version = "0.3.72" }
39+
monoio = { version = "0.2" }
40+
object_store = { version = "0.12" }
41+
opendal = { version = "0.50.1", default-features = false }
2442
parquet = { version = "56", default-features = false }
25-
arrow = { version = "56" }
43+
rand = { version = "0.8" }
44+
serde = { version = "1", features = ["derive"] }
45+
serde_json = { version = "1" }
46+
tempfile = { version = "3" }
47+
thiserror = { version = "2" }
48+
tokio = { version = "1", default-features = false }
49+
wasm-bindgen = { version = "0.2.95" }
50+
wasm-bindgen-futures = { version = "0.4.45" }
51+
wasm-bindgen-test = { version = "0.3.9" }
52+
web-sys = { version = "0.3" }
2653

2754
[profile.bench]
2855
codegen-units = 1
29-
lto = "thin"
3056
debug = true
57+
lto = "thin"

examples/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ monoio = ["dep:monoio", "fusio/monoio"]
1111
tokio = ["dep:tokio", "fusio/tokio"]
1212

1313
[dependencies]
14-
fusio = { path = "../fusio" }
15-
fusio-opendal = { path = "../fusio-opendal" }
16-
futures-util = "0.3"
17-
monoio = { version = "0.2", optional = true }
18-
opendal = { version = "0.50.1", default-features = false, features = [
14+
fusio = { workspace = true, features = ["dyn", "executor", "fs"] }
15+
fusio-opendal = { workspace = true }
16+
futures-util = { workspace = true }
17+
monoio = { workspace = true, optional = true }
18+
opendal = { workspace = true, features = [
1919
"services-memory",
2020
] }
21-
tokio = { version = "1.0", features = ["full"], optional = true }
21+
tokio = { workspace = true, features = ["full"], optional = true }

examples/opfs/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ version = "0.1.0"
88
crate-type = ["cdylib", "rlib"]
99

1010
[target.'cfg(target_arch = "wasm32")'.dependencies]
11-
arrow = "56"
12-
futures = { version = "0.3" }
11+
arrow = { workspace = true }
12+
futures = { workspace = true }
1313
parquet = { workspace = true, default-features = false, features = [
1414
"arrow",
1515
"async",
1616
] }
17-
wasm-bindgen = "0.2.95"
18-
wasm-bindgen-futures = { version = "0.4.45" }
19-
web-sys = { version = "0.3", features = ["console"] }
20-
fusio = { path = "../../fusio", features = ["opfs"] }
21-
fusio-parquet = { path = "../../fusio-parquet", features = ["web"] }
17+
wasm-bindgen = { workspace = true }
18+
wasm-bindgen-futures = { workspace = true }
19+
web-sys = { workspace = true, features = ["console"] }
20+
fusio = { workspace = true, features = ["opfs"] }
21+
fusio-parquet = { workspace = true, features = ["web"] }
2222

2323
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
24-
wasm-bindgen-test = "0.3.34"
24+
wasm-bindgen-test = { workspace = true }

fusio-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ no-send = []
1616
std = []
1717

1818
[dependencies]
19-
bytes = { version = "1", optional = true, default-features = false }
20-
thiserror = { version = "2", default-features = false }
19+
bytes = { workspace = true, optional = true }
20+
thiserror = { workspace = true }
2121

2222
[package.metadata.docs.rs]
2323
all-features = true

fusio-manifest/Cargo.toml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,40 @@ tokio = ["fusio/executor-tokio", "fusio/tokio-http"]
1414
web = ["fusio/opfs", "fusio/web-http"]
1515

1616
[dependencies]
17-
async-stream = { version = "0.3" }
17+
async-stream = { workspace = true }
1818
backon = "1.4"
19-
bytes = { version = "1" }
20-
fusio = { path = "../fusio", version = "0.4.1", default-features = false, features = [
19+
bytes = { workspace = true }
20+
fusio.workspace = true
21+
fusio.default-features = false
22+
fusio.features = [
2123
"aws",
2224
"dyn",
2325
"executor",
2426
"fs",
25-
] }
26-
fusio-core = { path = "../fusio-core", version = "0.4.1", features = ["std"] }
27-
futures-channel = "0.3"
27+
]
28+
fusio-core = { workspace = true, features = ["std"] }
29+
futures-channel = { workspace = true }
2830
futures-util = { workspace = true }
2931
moka = { version = "0.10", features = ["sync"], optional = true }
30-
serde = { version = "1", features = ["derive"] }
31-
serde_json = { version = "1" }
32+
serde = { workspace = true }
33+
serde_json = { workspace = true }
3234
sha2 = { version = "0.10" }
33-
thiserror = "2.0.17"
35+
thiserror = { workspace = true }
3436
tracing = "0.1"
3537

3638
[dev-dependencies]
37-
futures-executor = { version = "0.3" }
39+
futures-executor = { workspace = true }
3840

3941
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
4042
loom = "0.7"
4143
proptest = "1"
42-
rand = "0.8"
44+
rand = { workspace = true }
4345
rstest = "0.21"
44-
tempfile = "3"
45-
tokio = { version = "1", features = ["macros", "rt-multi-thread", "time"] }
46+
tempfile = { workspace = true }
47+
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
4648

4749
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
48-
wasm-bindgen-test = "0.3"
50+
wasm-bindgen-test = { workspace = true }
4951

5052
[[example]]
5153
name = "step1_basic"

fusio-object-store/Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@ repository.workspace = true
77
version.workspace = true
88

99
[dependencies]
10-
async-stream = { version = "0.3" }
11-
fusio = { version = "0.4.1", path = "../fusio", features = [
10+
async-stream = { workspace = true }
11+
fusio = { workspace = true, features = [
1212
"bytes",
1313
"dyn",
14+
"executor",
15+
"fs",
1416
"object_store",
1517
"tokio",
1618
] }
1719
futures-core = { workspace = true }
1820
futures-util = { workspace = true }
19-
object_store = { version = "0.12" }
21+
object_store = { workspace = true }
2022
parquet = { workspace = true, default-features = false, features = [
2123
"arrow",
2224
"async",
2325
"object_store",
2426
] }
25-
tokio = { version = "1", features = ["full"] }
27+
tokio = { workspace = true, features = ["full"] }
2628

2729
[dev-dependencies]
2830
bytes = { workspace = true }
29-
object_store = { version = "0.12", features = ["aws"] }
31+
object_store = { workspace = true, features = ["aws"] }

fusio-opendal/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository.workspace = true
77
version.workspace = true
88

99
[dependencies]
10-
fusio = { version = "0.4.1", path = "../fusio", features = ["bytes"] }
10+
fusio = { workspace = true, features = ["bytes", "dyn", "executor", "fs"] }
1111
futures-core = { workspace = true }
1212
futures-util = { workspace = true }
13-
opendal = { version = "0.50.1", default-features = false }
13+
opendal = { workspace = true }

fusio-parquet/Cargo.toml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,28 @@ required-features = ["bench", "tokio"]
3636

3737
[dependencies]
3838
bytes = { workspace = true }
39-
cfg-if = "1.0.0"
40-
fusio = { version = "0.4.1", path = "../fusio", features = ["bytes", "dyn"] }
41-
futures = { version = "0.3" }
42-
monoio = { version = "0.2", optional = true, features = ["sync"] }
39+
cfg-if = { workspace = true }
40+
fusio = { workspace = true, features = ["bytes", "dyn", "executor", "fs"] }
41+
futures = { workspace = true }
42+
monoio = { workspace = true, optional = true, features = ["sync"] }
4343
parquet = { workspace = true, features = ["arrow", "async"] }
44-
tokio = { version = "1.40", optional = true, features = [
44+
tokio = { workspace = true, optional = true, features = [
4545
"fs",
4646
"rt-multi-thread",
4747
] }
4848

4949
[target.'cfg(target_arch = "wasm32")'.dependencies]
50-
wasm-bindgen-futures = { version = "0.4.45" }
50+
wasm-bindgen-futures = { workspace = true }
5151

5252
[dev-dependencies]
5353
arrow = { workspace = true }
54-
# only parquet_dal maain brach supports parquet v54.x
55-
# but opendal does not support depends on git respository
56-
# therefore, clone it to local and use it as a local package
57-
# opendal = { path = "../../opendal/core", package = "opendal", features = [
58-
# "services-fs",
59-
# ] }
60-
# parquet_opendal = { path = "../../opendal/integrations/parquet", package = "parquet_opendal" }
61-
rand = "0.8"
62-
tempfile = "3.12.0"
63-
tokio = { version = "1.40" }
54+
rand = { workspace = true }
55+
tempfile = { workspace = true }
56+
tokio = { workspace = true }
6457

6558
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
66-
wasm-bindgen = "0.2.95"
67-
wasm-bindgen-test = "0.3.9"
59+
wasm-bindgen = { workspace = true }
60+
wasm-bindgen-test = { workspace = true }
6861

6962
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
70-
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
63+
criterion = { workspace = true }

fusio/Cargo.toml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -87,28 +87,28 @@ path = "../benches/monoio.rs"
8787
required-features = ["monoio"]
8888

8989
[dependencies]
90-
async-stream = { version = "0.3", optional = true }
90+
async-stream = { workspace = true, optional = true }
9191
bytes = { workspace = true, optional = true }
92-
cfg-if = "1.0.0"
92+
cfg-if = { workspace = true }
9393
chrono = { version = "0.4", optional = true, default-features = false, features = [
9494
"now",
9595
"std",
9696
"wasmbind",
9797
] }
98-
fusio-core = { path = "../fusio-core", version = "0.4.1", features = ["std"] }
98+
fusio-core = { workspace = true, features = ["std"] }
9999
futures-core = { workspace = true }
100100
futures-util = { workspace = true }
101-
futures-executor = { version = "0.3" }
102-
futures-channel = "0.3"
101+
futures-executor = { workspace = true }
102+
futures-channel = { workspace = true }
103103
async-lock = "3"
104104
http = { version = "1", optional = true, default-features = false }
105105
http-body = { version = "1", optional = true }
106106
http-body-util = { version = "0.1", optional = true, default-features = false }
107107
itertools = { version = "0.13" }
108-
monoio = { version = "0.2", optional = true, features = ["sync"] }
108+
monoio = { workspace = true, optional = true, features = ["sync"] }
109109
monoio-http-client = { version = "0.3.3", optional = true }
110110
monoio-http = { version = "0.3", optional = true }
111-
object_store = { version = "0.12", optional = true, features = ["aws"] }
111+
object_store = { workspace = true, optional = true, features = ["aws"] }
112112
percent-encoding = { version = "2", default-features = false }
113113
quick-xml = { version = "0.36", features = [
114114
"overlapped-lists",
@@ -118,23 +118,23 @@ reqwest = { version = "0.12.8", optional = true }
118118
hex = { version = "0.4", optional = true }
119119
reqsign-aws-v4 = { version = "1", optional = true }
120120
reqsign-core = { version = "1", optional = true }
121-
serde = { version = "1", optional = true, features = ["derive"] }
122-
serde_json = { version = "1", optional = true }
121+
serde = { workspace = true, optional = true }
122+
serde_json = { workspace = true, optional = true }
123123
serde_urlencoded = { version = "0.7", optional = true }
124-
thiserror = "2.0.12"
125-
tokio = { version = "1", optional = true, default-features = false, features = [
124+
thiserror = { workspace = true }
125+
tokio = { workspace = true, optional = true, features = [
126126
"io-util",
127127
"rt-multi-thread",
128128
] }
129129
url = { version = "2.5.3", default-features = false, features = ["std"] }
130130

131131
[target.'cfg(target_arch = "wasm32")'.dependencies]
132132
getrandom = { version = "0.2", features = ["js"] }
133-
js-sys = { version = "0.3.72", optional = true }
134-
wasm-bindgen-futures = { version = "0.4.45", optional = true, features = [
133+
js-sys = { workspace = true, optional = true }
134+
wasm-bindgen-futures = { workspace = true, optional = true, features = [
135135
"futures-core-03-stream",
136136
] }
137-
web-sys = { version = "0.3", optional = true, features = [
137+
web-sys = { workspace = true, optional = true, features = [
138138
"Blob",
139139
"File",
140140
"FileSystemCreateWritableOptions",
@@ -158,7 +158,7 @@ web-sys = { version = "0.3", optional = true, features = [
158158

159159
] }
160160
async-lock = { version = "3", optional = true }
161-
wasm-bindgen = { version = "0.2.95", optional = true }
161+
wasm-bindgen = { workspace = true, optional = true }
162162

163163
[target.'cfg(target_os = "linux")'.dependencies]
164164
tokio-uring = { version = "0.5", default-features = false, optional = true }
@@ -167,20 +167,20 @@ tokio-uring = { version = "0.5", default-features = false, optional = true }
167167
windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Storage_FileSystem"] }
168168

169169
[dev-dependencies]
170-
rand = "0.8"
171-
tempfile = "3"
170+
rand = { workspace = true }
171+
tempfile = { workspace = true }
172172

173173
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
174-
criterion = { version = "0.5", features = ["async_tokio", "html_reports"] }
175-
futures-util = { version = "0.3" }
174+
criterion = { workspace = true }
175+
futures-util = { workspace = true }
176176
hyper = { version = "1", features = ["full"] }
177177
hyper-util = { version = "0.1", features = ["full"] }
178-
monoio = { version = "0.2" }
179-
tokio = { version = "1", features = ["full"] }
178+
monoio = { workspace = true }
179+
tokio = { workspace = true, features = ["full"] }
180180

181181
[target.'cfg(target_os = "linux")'.dev-dependencies]
182182
tokio-uring = { version = "0.5" }
183183

184184
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
185-
wasm-bindgen = "0.2.95"
186-
wasm-bindgen-test = "0.3.9"
185+
wasm-bindgen = { workspace = true }
186+
wasm-bindgen-test = { workspace = true }

0 commit comments

Comments
 (0)