Closed
Description
I’m trying to use this library on a 32-bit platform (an ESP32-C3 chip, RISC-V based, has alloc and std).
However when building I get this error:
$ cargo check
Checking prometheus-client v0.22.2
error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
--> /home/navaati/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prometheus-client-0.22.2/src/metrics/counter.rs:10:5
|
10 | use std::sync::atomic::AtomicU64;
| ^^^^^^^^^^^^^^^^^^^---------
| | |
| | help: a similar name exists in the module: `AtomicU32`
| no `AtomicU64` in `sync::atomic`
error[E0432]: unresolved import `std::sync::atomic::AtomicU64`
--> /home/navaati/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prometheus-client-0.22.2/src/metrics/exemplar.rs:17:5
|
17 | use std::sync::atomic::AtomicU64;
| ^^^^^^^^^^^^^^^^^^^---------
| | |
| | help: a similar name exists in the module: `AtomicU32`
| no `AtomicU64` in `sync::atomic`
error[E0432]: unresolved imports `std::sync::atomic::AtomicI64`, `std::sync::atomic::AtomicU64`
--> /home/navaati/.cargo/registry/src/index.crates.io-6f17d22bba15001f/prometheus-client-0.22.2/src/metrics/gauge.rs:11:25
|
11 | use std::sync::atomic::{AtomicI64, AtomicU64};
| ^^^^^^^^^ ^^^^^^^^^ no `AtomicU64` in `sync::atomic`
| |
| no `AtomicI64` in `sync::atomic`
My platform doesn’t support 64 bit atomics. Would there be a way to drop down to 32 bit atomics, perhaps with config detections, or a feature flag ?
Metadata
Metadata
Assignees
Labels
No labels