You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because moka internally uses some 64-bit atomic types from standard library, but it is not found in some 32-bit processors.
you can use portable-atomic for support these platforms.
error[E0432]: unresolved import "std::sync::atomic::AtomicU64"
--> /cargo/registry/src/index.crates.io-6f17d22bba15001f/moka-0.12.8/src/common/concurrent/atomic_time/atomic_time.rs:5:20
|
5 | sync::atomic::{AtomicU64, Ordering},
| ^^^^^^^^^
| |
| no "AtomicU64" in "sync::atomic"
| help: a similar name exists in the module: "AtomicU32"
The text was updated successfully, but these errors were encountered:
Thanks for the information! I will consider it for a future release.
I once tried crossbeam::atomic::AtomicCell<u64> in 2021, when portable-atomic did not exist (#41). portable-atomic is written by the same author of crossbeam::atomic::*, and it seems to be more suitable for our use case.
As for now (mokav0.12.8 and v0.12.9), I hope you already found the workaround for this issue. It is described in the Troubleshooting section of v0.12.8 README.
[dependencies]
moka = { version = "0.12", default-features = false, features = ["sync"] }
# Ormoka = { version = "0.12", default-features = false, features = ["future"] }
We just released v0.12.9 with a bit better workaround #466. But again, I will consider portable-atomic for a future release. Thanks for the suggestion!
because moka internally uses some 64-bit atomic types from standard library, but it is not found in some 32-bit processors.
you can use
portable-atomic
for support these platforms.https://docs.rs/portable-atomic
cargo add moka --no-default-features -F future,logging,atomic64,quanta
cross build --release --target mipsel-unknown-linux-musl
The text was updated successfully, but these errors were encountered: