Skip to content

Commit a4fd20a

Browse files
authored
Merge pull request #3939 from autonomys/update-depedencies
Update depedencies
2 parents ecd7578 + 1755c5f commit a4fd20a

17 files changed

Lines changed: 223 additions & 229 deletions

File tree

‎Cargo.lock‎

Lines changed: 114 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ab-blake3 = "0.2.0"
3333
ab-chacha8 = "0.1.1"
3434
ab-proof-of-space = { path = "shared/ab-proof-of-space", default-features = false }
3535
ab-proof-of-space-gpu = { path = "shared/ab-proof-of-space-gpu", default-features = false }
36-
actix-web = { version = "4.15.0", default-features = false }
36+
actix-web = { version = "4.17.0", default-features = false }
3737
aes = "0.9.3"
3838
anyhow = "1.0.104"
3939
array-reshape = { version = "0.1.1", features = ["const-trait"] }
@@ -54,8 +54,8 @@ blake3 = { version = "1.8.7", default-features = false }
5454
blst = "0.3.17"
5555
bytes = { version = "1.12.1", default-features = false }
5656
bytesize = "2.7.0"
57-
cargo-gpu-install = "0.10.0"
58-
cc = "1.5.1"
57+
cargo-gpu-install = "0.11.0"
58+
cc = "1.9.0"
5959
chacha20 = { version = "0.10.2", default-features = false }
6060
clap = "4.6.7"
6161
console = "0.16.6"
@@ -112,7 +112,7 @@ hex-literal = "1.1.0"
112112
hwlocality = "1.0.0-alpha.13"
113113
jsonrpsee = "0.24.11"
114114
kzg = { git = "https://github.com/grandinetech/rust-kzg", rev = "8f5f1a0f73b3c529c77cb880ff8d265830c7d7ac", default-features = false }
115-
libc = "0.2.190"
115+
libc = "0.2.191"
116116
libp2p = { version = "0.57.0", git = "https://github.com/autonomys/rust-libp2p", rev = "5914c8763c6073b31208ca343a4da779c90e481f", default-features = false }
117117
libp2p-swarm-test = { version = "0.7.0", git = "https://github.com/autonomys/rust-libp2p", rev = "5914c8763c6073b31208ca343a4da779c90e481f" }
118118
libsecp256k1 = "0.7.2"
@@ -163,7 +163,7 @@ pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/autonom
163163
pallet-transporter = { version = "0.1.0", path = "domains/pallets/transporter", default-features = false }
164164
pallet-utility = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11df00351b12feaadfec60457a5f8888", default-features = false }
165165
parity-scale-codec = { version = "3.7.5", default-features = false }
166-
parking_lot = "0.12.5"
166+
parking_lot = "0.13.0"
167167
pem = "4.0.0"
168168
pin-project = "1.1.13"
169169
precompile-utils = { version = "0.1.0", git = "https://github.com/polkadot-evm/frontier", rev = "9d49e36ed5bac38241594f8ba055fdb94991483a", default-features = false }
@@ -174,7 +174,6 @@ rand = { version = "0.10.3", default-features = false }
174174
rand_chacha = { version = "0.10.0", default-features = false }
175175
rand_core = "0.10.1"
176176
rayon = "1.12.0"
177-
rclite = "0.4.1"
178177
reqwest = { version = "0.13.5", default-features = false }
179178
ring = "0.17.14"
180179
rlp = "0.6.1"
@@ -222,8 +221,8 @@ schnorrkel = { version = "0.11.5", default-features = false }
222221
seq-macro = "0.3.6"
223222
serde = { version = "1.0.229", default-features = false }
224223
serde-big-array = "0.5.1"
225-
serde_json = "1.0.151"
226-
sha2 = { version = "0.11.0", default-features = false }
224+
serde_json = "1.0.154"
225+
sha2 = { version = "0.11.1", default-features = false }
227226
sp-api = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11df00351b12feaadfec60457a5f8888", default-features = false }
228227
sp-application-crypto = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11df00351b12feaadfec60457a5f8888", default-features = false }
229228
sp-arithmetic = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11df00351b12feaadfec60457a5f8888", default-features = false }
@@ -267,7 +266,7 @@ sp-trie = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11
267266
sp-version = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11df00351b12feaadfec60457a5f8888", default-features = false }
268267
sp-weights = { git = "https://github.com/autonomys/polkadot-sdk", rev = "1c50901c11df00351b12feaadfec60457a5f8888", default-features = false }
269268
spin = "0.12.3"
270-
spirv-std = "0.10.0"
269+
spirv-std-nightly = "0.11.1"
271270
ss58-registry = "1.51.0"
272271
static_assertions = "1.1.0"
273272
strum_macros = "0.28.0"
@@ -303,20 +302,21 @@ supports-color = "3.0.2"
303302
tempfile = "3.27.0"
304303
thiserror = { version = "2.0.21", default-features = false }
305304
thread-priority = "3.1.1"
306-
tokio = "1.53.1"
305+
tokio = "1.54.1"
307306
tokio-stream = "0.1.19"
308307
tracing = { version = "0.1.44", default-features = false }
309308
tracing-subscriber = "0.3.23"
310309
transparent-wrapper = { version = "0.1.0", features = ["const-trait"] }
311310
transporter-precompile = { version = "0.1.0", path = "domains/evm-precompiles/transporter", default-features = false }
312311
trie-db = { version = "0.31.0", default-features = false }
312+
triomphe = { version = "0.1.17", default-features = false }
313313
uint = { version = "0.10.2", default-features = false }
314314
ulid = "3.0.0"
315315
unsigned-varint = "0.8.0"
316316
void = "1.0.2"
317317
wgpu = { version = "30.0.1", default-features = false, features = ["metal", "parking_lot", "spirv", "std", "vulkan"] }
318318
x509-parser = "0.18.1"
319-
zeroize = "1.9.0"
319+
zeroize = "1.9.1"
320320
ziggy = { version = "1.7.3", default-features = false }
321321

322322
# The list of dependencies below (which can be both direct and indirect dependencies) are crates

‎crates/subspace-proof-of-space/src/chiapos/table.rs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ use ab_chacha8::{ChaCha8Block, ChaCha8State};
1717
#[cfg(feature = "alloc")]
1818
use alloc::boxed::Box;
1919
#[cfg(feature = "alloc")]
20+
use alloc::sync::Arc;
21+
#[cfg(feature = "alloc")]
2022
use alloc::vec;
2123
#[cfg(feature = "alloc")]
2224
use alloc::vec::Vec;
@@ -39,9 +41,6 @@ use core::sync::atomic::{AtomicUsize, Ordering};
3941
use derive_more::Deref;
4042
#[cfg(any(feature = "alloc", test))]
4143
use seq_macro::seq;
42-
// TODO: Switch to `rclite` once https://github.com/fereidani/rclite/issues/11 is resolved
43-
#[cfg(feature = "alloc")]
44-
use alloc::sync::Arc;
4544
use subspace_core_primitives::hashes::blake3_hash;
4645

4746
#[cfg(any(feature = "alloc", test))]

‎shared/ab-proof-of-space-gpu/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ all-features = true
2020
ab-blake3 = { workspace = true }
2121
ab-chacha8 = { workspace = true }
2222
derive_more = { workspace = true, features = ["from", "into"] }
23-
spirv-std = { workspace = true }
23+
spirv-std-nightly = { workspace = true }
2424

2525
[target.'cfg(not(target_arch = "spirv"))'.dependencies]
2626
subspace-core-primitives = { workspace = true }
2727
futures = { workspace = true, features = ["std"] }
2828
parking_lot = { workspace = true }
29-
rclite = { workspace = true }
3029
thiserror = { workspace = true }
30+
triomphe = { workspace = true, features = ["std"] }
3131
wgpu = { workspace = true }
3232

3333
[dev-dependencies]

‎shared/ab-proof-of-space-gpu/build.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
6969
.forward_rustc_warnings
7070
.replace(true);
7171

72+
// Emitting any `rerun-if-*` disables Cargo's default of rerunning on any package file change,
73+
// and in Clippy mode `spirv-builder` doesn't emit dependency info for sources
74+
println!("cargo::rerun-if-changed=src");
75+
println!("cargo::rerun-if-changed=Cargo.toml");
7276
println!("cargo::rerun-if-env-changed=CLIPPY_ARGS");
7377
let path_to_spv = if env::var("CLIPPY_ARGS").is_ok() {
7478
match spirv_builder.clippy() {

‎shared/ab-proof-of-space-gpu/src/host.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use ab_chacha8::{ChaCha8Block, ChaCha8State, block_to_bytes};
1010
use futures::stream::FuturesOrdered;
1111
use futures::{StreamExt, TryStreamExt};
1212
use parking_lot::Mutex;
13-
use rclite::Arc;
1413
use std::num::NonZeroU8;
1514
use std::{fmt, iter};
1615
use subspace_core_primitives::pos::PosSeed;
16+
use triomphe::Arc;
1717
use wgpu::{
1818
AdapterInfo, Backend, BackendOptions, Backends, BindGroup, BindGroupDescriptor, BindGroupEntry,
1919
BindGroupLayoutDescriptor, BindGroupLayoutEntry, BindingType, Buffer, BufferAddress,

‎shared/ab-proof-of-space-gpu/src/lib.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
generic_const_args,
1111
generic_const_items,
1212
min_generic_const_args,
13+
mut_restriction,
1314
step_trait
1415
)]
1516
#![expect(incomplete_features, reason = "generic_const_*")]

‎shared/ab-proof-of-space-gpu/src/shader/compute_f1.rs‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ use crate::shader::polyfills::ArrayIndexingPolyfill;
99
use crate::shader::types::{Position, PositionExt, PositionR, X, Y};
1010
use ab_chacha8::{ChaCha8Block, ChaCha8State};
1111
use core::mem::MaybeUninit;
12-
use spirv_std::arch::atomic_i_increment;
13-
use spirv_std::glam::{UVec3, UVec4};
14-
use spirv_std::memory::{Scope, Semantics};
15-
use spirv_std::spirv;
12+
use spirv_std_nightly::arch::atomic_i_increment;
13+
use spirv_std_nightly::glam::{UVec3, UVec4};
14+
use spirv_std_nightly::memory::{Scope, Semantics};
15+
use spirv_std_nightly::spirv;
1616

1717
const fn gcd(mut a: u32, mut b: u32) -> u32 {
1818
while b != 0 {
@@ -185,11 +185,7 @@ pub unsafe fn compute_f1(
185185
// SAFETY: TODO: Probably should not be unsafe to begin with:
186186
// https://github.com/Rust-GPU/rust-gpu/pull/394#issuecomment-3316594485
187187
let bucket_offset = unsafe {
188-
atomic_i_increment::<
189-
_,
190-
const { Scope::QueueFamily as u32 },
191-
const { Semantics::NONE.bits() },
192-
>(bucket_size)
188+
atomic_i_increment::<_, { Scope::QueueFamily }, const { Semantics::NONE }>(bucket_size)
193189
};
194190

195191
// SAFETY: Bucket is obtained using division by `PARAM_BC` and fits by definition. Bucket

‎shared/ab-proof-of-space-gpu/src/shader/find_matches_and_compute_f2.rs‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ use crate::shader::polyfills::ArrayIndexingPolyfill;
1414
use crate::shader::types::{Match, Metadata, Position, PositionExt, PositionR, Y};
1515
use core::fmt;
1616
use core::mem::MaybeUninit;
17-
use spirv_std::arch::{atomic_i_increment, workgroup_memory_barrier_with_group_sync};
18-
use spirv_std::glam::UVec3;
19-
use spirv_std::memory::{Scope, Semantics};
20-
use spirv_std::spirv;
17+
use spirv_std_nightly::arch::{atomic_i_increment, workgroup_memory_barrier_with_group_sync};
18+
use spirv_std_nightly::glam::UVec3;
19+
use spirv_std_nightly::memory::{Scope, Semantics};
20+
use spirv_std_nightly::spirv;
2121

2222
// TODO: Same number as hardcoded in `#[spirv(compute(threads(..)))]` below, can be removed once
2323
// https://github.com/Rust-GPU/rust-gpu/discussions/287 is resolved
@@ -113,9 +113,7 @@ unsafe fn compute_f2_into_buckets_inner(
113113
// SAFETY: TODO: Probably should not be unsafe to begin with:
114114
// https://github.com/Rust-GPU/rust-gpu/pull/394#issuecomment-3316594485
115115
let bucket_offset = unsafe {
116-
atomic_i_increment::<_, const { Scope::QueueFamily as u32 }, const { Semantics::NONE.bits() }>(
117-
bucket_size,
118-
)
116+
atomic_i_increment::<_, { Scope::QueueFamily }, const { Semantics::NONE }>(bucket_size)
119117
};
120118

121119
// SAFETY: Bucket is obtained using division by `PARAM_BC` and fits by definition. Bucket

‎shared/ab-proof-of-space-gpu/src/shader/find_matches_and_compute_f7.rs‎

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ use crate::shader::polyfills::ArrayIndexingPolyfill;
1414
use crate::shader::types::{Match, Metadata, Position, PositionR, Y};
1515
use core::fmt;
1616
use core::mem::MaybeUninit;
17-
use spirv_std::arch::{atomic_i_increment, workgroup_memory_barrier_with_group_sync};
18-
use spirv_std::glam::UVec3;
19-
use spirv_std::memory::{Scope, Semantics};
20-
use spirv_std::spirv;
17+
use spirv_std_nightly::arch::{atomic_i_increment, workgroup_memory_barrier_with_group_sync};
18+
use spirv_std_nightly::glam::UVec3;
19+
use spirv_std_nightly::memory::{Scope, Semantics};
20+
use spirv_std_nightly::spirv;
2121

2222
// TODO: Same number as hardcoded in `#[spirv(compute(threads(..)))]` below, can be removed once
2323
// https://github.com/Rust-GPU/rust-gpu/discussions/287 is resolved
@@ -144,7 +144,7 @@ unsafe fn compute_f7_into_buckets_inner(
144144
// TODO: This should have been `&[[Metadata; REDUCED_MATCHES_COUNT]; NUM_MATCH_BUCKETS]`, but
145145
// it currently doesn't compile if flattened:
146146
// https://github.com/Rust-GPU/rust-gpu/issues/241#issuecomment-3005693043
147-
parent_metadatas: &[Metadata; const { REDUCED_MATCHES_COUNT * NUM_MATCH_BUCKETS }],
147+
parent_metadatas: &[Metadata; REDUCED_MATCHES_COUNT * NUM_MATCH_BUCKETS],
148148
table_6_proof_targets_sizes: &mut [u32; NUM_S_BUCKETS],
149149
table_6_proof_targets: &mut [[MaybeUninit<ProofTargets>; NUM_ELEMENTS_PER_S_BUCKET];
150150
NUM_S_BUCKETS],
@@ -208,9 +208,7 @@ unsafe fn compute_f7_into_buckets_inner(
208208
// SAFETY: TODO: Probably should not be unsafe to begin with:
209209
// https://github.com/Rust-GPU/rust-gpu/pull/394#issuecomment-3316594485
210210
let bucket_offset = unsafe {
211-
atomic_i_increment::<_, const { Scope::QueueFamily as u32 }, const { Semantics::NONE.bits() }>(
212-
bucket_size,
213-
)
211+
atomic_i_increment::<_, { Scope::QueueFamily }, const { Semantics::NONE }>(bucket_size)
214212
};
215213

216214
// TODO: Maybe store `absolute_position` separately from more densely populated positions,
@@ -251,7 +249,7 @@ unsafe fn compute_f7_into_buckets(
251249
// TODO: This should have been `&[[Metadata; REDUCED_MATCHES_COUNT]; NUM_MATCH_BUCKETS]`, but
252250
// it currently doesn't compile if flattened:
253251
// https://github.com/Rust-GPU/rust-gpu/issues/241#issuecomment-3005693043
254-
parent_metadatas: &[Metadata; const { REDUCED_MATCHES_COUNT * NUM_MATCH_BUCKETS }],
252+
parent_metadatas: &[Metadata; REDUCED_MATCHES_COUNT * NUM_MATCH_BUCKETS],
255253
table_6_proof_targets_sizes: &mut [u32; NUM_S_BUCKETS],
256254
table_6_proof_targets: &mut [[MaybeUninit<ProofTargets>; NUM_ELEMENTS_PER_S_BUCKET];
257255
NUM_S_BUCKETS],
@@ -324,10 +322,8 @@ pub unsafe fn find_matches_and_compute_f7(
324322
#[spirv(workgroup_id)] workgroup_id: UVec3,
325323
#[spirv(storage_buffer, descriptor_set = 0, binding = 0)] parent_buckets: &[[PositionR; MAX_BUCKET_SIZE];
326324
NUM_BUCKETS],
327-
#[spirv(storage_buffer, descriptor_set = 0, binding = 1)] parent_metadatas: &[Metadata;
328-
const {
329-
REDUCED_MATCHES_COUNT * NUM_MATCH_BUCKETS
330-
}],
325+
#[spirv(storage_buffer, descriptor_set = 0, binding = 1)]
326+
parent_metadatas: &[Metadata; REDUCED_MATCHES_COUNT * NUM_MATCH_BUCKETS],
331327
#[spirv(storage_buffer, descriptor_set = 0, binding = 2)]
332328
table_6_proof_targets_sizes: &mut [u32; NUM_S_BUCKETS],
333329
#[spirv(storage_buffer, descriptor_set = 0, binding = 3)]

0 commit comments

Comments
 (0)