Skip to content

Commit dbb0e5f

Browse files
authored
internal: use portable-atomic in IngredientCache to compile on powerpc-unknown-linux-gnu (#749)
1 parent 9d2a978 commit dbb0e5f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ hashbrown = "0.15"
1919
hashlink = "0.10"
2020
indexmap = "2"
2121
parking_lot = "0.12"
22+
portable-atomic = "1"
2223
rustc-hash = "2"
2324
smallvec = "1"
2425
tracing = "0.1"

src/zalsa.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
use parking_lot::{Mutex, RwLock};
2+
use portable_atomic::AtomicU64;
23
use rustc_hash::FxHashMap;
34
use std::any::{Any, TypeId};
45
use std::collections::hash_map;
56
use std::marker::PhantomData;
67
use std::mem;
78
use std::num::NonZeroU32;
89
use std::panic::RefUnwindSafe;
9-
use std::sync::atomic::{AtomicU64, Ordering};
10+
use std::sync::atomic::Ordering;
1011

1112
use crate::cycle::CycleRecoveryStrategy;
1213
use crate::ingredient::{Ingredient, Jar};

0 commit comments

Comments
 (0)