Skip to content

Commit f54c565

Browse files
authored
move all dependency versions to root cargo.toml (#1055)
1 parent 96713af commit f54c565

8 files changed

Lines changed: 117 additions & 94 deletions

File tree

Cargo.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,46 @@ parquet = { version = "53.0.0" }
6464
# serde_json: branch=v1.0.96-blaze
6565
serde_json = { version = "1.0.96" }
6666

67+
# other dependencies
68+
async-trait = "0.1.88"
69+
base64 = "0.22.1"
70+
bigdecimal = "0.4.8"
71+
bitvec = "1.0.1"
72+
byteorder = "1.5.0"
73+
bytes = "1.10.1"
74+
bytesize = "2.0.1"
75+
chrono = "0.4.33"
76+
count-write = "0.1.0"
77+
derivative = "2.2.0"
78+
foldhash = "0.1.5"
79+
futures = "0.3"
80+
futures-util = "0.3.31"
81+
hashbrown = "0.14.5"
82+
itertools = "0.14.0"
83+
jni = "0.20.0"
84+
log = "0.4.27"
85+
lz4_flex = "0.11.2"
86+
num = "0.4.2"
87+
object_store = "0.11.1"
88+
once_cell = "1.21.3"
89+
panic-message = "0.3.0"
90+
parking_lot = "0.12.4"
91+
paste = "1.0.15"
92+
procfs = "0.17.0"
93+
prost = "0.14.1"
94+
radsort = "0.1.1"
95+
rand = "0.9.1"
96+
smallvec = "2.0.0-alpha.11"
97+
sonic-rs = "0.5.2"
98+
tempfile = "3"
99+
thrift = "0.17.0"
100+
tokio = "1.45.1"
101+
tonic-build = "0.13.1"
102+
transpose = "0.2.3"
103+
unchecked-index = "0.2.2"
104+
uuid = "1.17.0"
105+
zstd = "0.13.3"
106+
67107
[patch.crates-io]
68108
# datafusion: branch=v42-blaze
69109
datafusion = { git = "https://github.com/blaze-init/arrow-datafusion.git", rev = "b7876646a02401cc064657ccf17de27cfe6240ee"}

native-engine/blaze-jni-bridge/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ resolver = "1"
66

77
[dependencies]
88
datafusion = { workspace = true }
9-
jni = "0.20.0"
10-
log = "0.4.27"
11-
once_cell = "1.21.3"
12-
paste = "1.0.15"
9+
jni = { workspace = true }
10+
log = { workspace = true }
11+
once_cell = { workspace = true }
12+
paste = { workspace = true }

native-engine/blaze-jni-bridge/src/lib.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
// limitations under the License.
1414

1515
use datafusion::common::Result;
16-
use jni::{
17-
objects::GlobalRef,
18-
sys::{JNI_FALSE, JNI_TRUE},
19-
};
20-
use once_cell::sync::OnceCell;
2116

2217
pub mod conf;
2318
pub mod jni_bridge;
@@ -40,19 +35,3 @@ pub fn is_task_running() -> bool {
4035
}
4136
is_task_running_impl().expect("calling JniBridge.isTaskRunning() error")
4237
}
43-
44-
pub fn java_true() -> &'static GlobalRef {
45-
static OBJ_TRUE: OnceCell<GlobalRef> = OnceCell::new();
46-
OBJ_TRUE.get_or_init(|| {
47-
let true_local = jni_new_object!(JavaBoolean(JNI_TRUE)).unwrap();
48-
jni_new_global_ref!(true_local.as_obj()).unwrap()
49-
})
50-
}
51-
52-
pub fn java_false() -> &'static GlobalRef {
53-
static OBJ_FALSE: OnceCell<GlobalRef> = OnceCell::new();
54-
OBJ_FALSE.get_or_init(|| {
55-
let false_local = jni_new_object!(JavaBoolean(JNI_FALSE)).unwrap();
56-
jni_new_global_ref!(false_local.as_obj()).unwrap()
57-
})
58-
}

native-engine/blaze-serde/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ default = ["prost/no-recursion-limit"]
88

99
[dependencies]
1010
arrow = { workspace = true }
11-
base64 = "*"
1211
datafusion = { workspace = true }
1312
datafusion-ext-commons = { workspace = true }
1413
datafusion-ext-exprs = { workspace = true }
1514
datafusion-ext-functions = { workspace = true }
1615
datafusion-ext-plans = { workspace = true }
17-
log = "0.4.27"
18-
object_store = "0.11.1"
19-
prost = "0.14.1"
20-
parking_lot = "0.12.4"
16+
17+
base64 = { workspace = true }
18+
log = { workspace = true }
19+
object_store = { workspace = true }
20+
prost = { workspace = true }
21+
parking_lot = { workspace = true }
2122

2223
[build-dependencies]
23-
tonic-build = "0.13.1"
24+
tonic-build = { workspace = true }

native-engine/datafusion-ext-commons/Cargo.toml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,29 @@ default = ["tokio/rt-multi-thread"]
1010
[dependencies]
1111
arrow = { workspace = true }
1212
arrow-schema = { workspace = true }
13-
async-trait = "0.1.88"
14-
bitvec = "1.0.1"
1513
blaze-jni-bridge = { workspace = true }
16-
bigdecimal = "0.4.8"
17-
byteorder = "1.5.0"
18-
bytes = "1.10.1"
19-
chrono = "0.4.33"
2014
datafusion = { workspace = true }
21-
futures = "0.3"
22-
itertools = "0.14.0"
23-
jni = "0.20.0"
24-
log = "0.4.27"
25-
num = "0.4.2"
26-
once_cell = "1.21.3"
27-
paste = "1.0.15"
28-
radsort = "0.1.1"
29-
smallvec = "2.0.0-alpha.11"
30-
tempfile = "3"
31-
transpose = "0.2.3"
32-
thrift = "0.17.0"
33-
tokio = "1.45.1"
34-
unchecked-index = "0.2.2"
15+
16+
async-trait = { workspace = true }
17+
bitvec = { workspace = true }
18+
bigdecimal = { workspace = true }
19+
byteorder = { workspace = true }
20+
bytes = { workspace = true }
21+
chrono = { workspace = true }
22+
futures = { workspace = true }
23+
itertools = { workspace = true }
24+
jni = { workspace = true }
25+
log = { workspace = true }
26+
num = { workspace = true }
27+
once_cell = { workspace = true }
28+
paste = { workspace = true }
29+
radsort = { workspace = true }
30+
smallvec = { workspace = true }
31+
tempfile = { workspace = true }
32+
transpose = { workspace = true }
33+
thrift = { workspace = true }
34+
tokio = { workspace = true }
35+
unchecked-index = { workspace = true }
3536

3637
[dev-dependencies]
37-
rand = "0.9.1"
38+
rand = { workspace = true }

native-engine/datafusion-ext-exprs/Cargo.toml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ async-trait = "0.1.88"
1010
blaze-jni-bridge = { workspace = true }
1111
datafusion = { workspace = true }
1212
datafusion-ext-commons = { workspace = true }
13-
itertools = "0.14.0"
14-
jni = "0.20.0"
15-
log = "0.4.27"
16-
num = "0.4.2"
17-
once_cell = "1.21.3"
18-
parking_lot = "0.12.4"
19-
paste = "1.0.15"
13+
14+
itertools = { workspace = true }
15+
jni = { workspace = true }
16+
log = { workspace = true }
17+
num = { workspace = true }
18+
once_cell = { workspace = true }
19+
parking_lot = { workspace = true }
20+
paste = { workspace = true }

native-engine/datafusion-ext-functions/Cargo.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ async-trait = "0.1.88"
1010
blaze-jni-bridge = { workspace = true }
1111
datafusion = { workspace = true }
1212
datafusion-ext-commons = { workspace = true }
13-
itertools = "0.14.0"
14-
log = "0.4.27"
15-
num = "0.4.2"
16-
paste = "1.0.15"
13+
14+
itertools = { workspace = true }
15+
log = { workspace = true }
16+
num = { workspace = true }
17+
paste = { workspace = true }
1718
serde_json = { workspace = true }
18-
sonic-rs = "0.5.2"
19+
sonic-rs = { workspace = true }

native-engine/datafusion-ext-plans/Cargo.toml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,37 @@ datafusion-ext-exprs = { workspace = true }
1717
datafusion-ext-functions = { workspace = true }
1818
orc-rust = { workspace = true }
1919

20-
async-trait = "0.1.88"
21-
base64 = "0.22.1"
22-
bitvec = "1.0.1"
23-
byteorder = "1.5.0"
24-
bytes = "1.10.1"
25-
bytesize = "2.0.1"
26-
count-write = "0.1.0"
27-
derivative = "2.2.0"
28-
foldhash = "0.1.5"
29-
futures = "0.3"
30-
futures-util = "0.3.31"
31-
hashbrown = "0.14.5"
32-
itertools = "0.14.0"
33-
jni = "0.20.0"
34-
log = "0.4.27"
35-
lz4_flex = "0.11.2"
36-
num = "0.4.2"
37-
object_store = "0.11.1"
38-
once_cell = "1.21.3"
39-
panic-message = "0.3.0"
40-
parking_lot = "0.12.4"
41-
paste = "1.0.15"
42-
smallvec = "2.0.0-alpha.11"
43-
tempfile = "3"
44-
tokio = "1.45.1"
45-
unchecked-index = "0.2.2"
46-
uuid = "1.17.0"
47-
zstd = "0.13.3"
20+
async-trait = { workspace = true }
21+
base64 = { workspace = true }
22+
bitvec = { workspace = true }
23+
byteorder = { workspace = true }
24+
bytes = { workspace = true }
25+
bytesize = { workspace = true }
26+
count-write = { workspace = true }
27+
derivative = { workspace = true }
28+
foldhash = { workspace = true }
29+
futures = { workspace = true }
30+
futures-util = { workspace = true }
31+
hashbrown = { workspace = true }
32+
itertools = { workspace = true }
33+
jni = { workspace = true }
34+
log = { workspace = true }
35+
lz4_flex = { workspace = true }
36+
num = { workspace = true }
37+
object_store = { workspace = true }
38+
once_cell = { workspace = true }
39+
panic-message = { workspace = true }
40+
parking_lot = { workspace = true }
41+
paste = { workspace = true }
42+
smallvec = { workspace = true }
43+
tempfile = { workspace = true }
44+
tokio = { workspace = true }
45+
unchecked-index = { workspace = true }
46+
uuid = { workspace = true }
47+
zstd = { workspace = true }
4848

4949
[target.'cfg(target_os = "linux")'.dependencies]
50-
procfs = "0.17.0"
50+
procfs = { workspace = true }
5151

5252
[dev-dependencies]
53-
rand = "0.9.1"
53+
rand = { workspace = true }

0 commit comments

Comments
 (0)