We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125acdd commit 093ea31Copy full SHA for 093ea31
src/lib.rs
@@ -28,7 +28,7 @@
28
//! contains detailed information about the sensor's features, electrical characteristics, and registers. This package
29
//! implements the functionality described in the datasheet and references the relevant sections in the documentation.
30
31
-#![cfg_attr(not(test), no_std)]
+#![no_std]
32
33
use defmt::{debug, trace, Format};
34
use embedded_hal_async::{delay::DelayNs, i2c::I2c};
@@ -692,6 +692,9 @@ where
692
693
#[cfg(test)]
694
mod tests {
695
+ extern crate std;
696
+ use std::prelude::rust_2021::*;
697
+ use std::vec;
698
use embedded_hal_mock::eh1::delay::{CheckedDelay, NoopDelay, Transaction as DelayTransaction};
699
use embedded_hal_mock::eh1::i2c::{Mock, Transaction as I2cTransaction};
700
use uom::ConstZero;
0 commit comments