Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to build for some platforms that does not support AtomicU64 #462

Open
delta4chat opened this issue Oct 31, 2024 · 0 comments
Open

Comments

@delta4chat
Copy link

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

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant