From 452bad69b4b6d08b9e13e8ddf881385c6806c233 Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Mon, 10 Apr 2023 10:52:21 +0200 Subject: [PATCH] Do not activate critical-section/std by default --- rtic-time/Cargo.toml | 1 - rtic-time/tests/timer_queue.rs | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rtic-time/Cargo.toml b/rtic-time/Cargo.toml index dda8e600cc..69205fd01e 100644 --- a/rtic-time/Cargo.toml +++ b/rtic-time/Cargo.toml @@ -24,6 +24,5 @@ rtic-common = { version = "1.0.0-alpha.0", path = "../rtic-common" } [dev-dependencies] parking_lot = "0.12" tokio = { version = "1.27", features = ["rt", "macros", "sync", "rt-multi-thread", "time"] } -critical-section = { version = "1", features = ["std"] } pretty_env_logger = "0.4" log = "0.4" diff --git a/rtic-time/tests/timer_queue.rs b/rtic-time/tests/timer_queue.rs index 1ac96b80fd..cccf04dd92 100644 --- a/rtic-time/tests/timer_queue.rs +++ b/rtic-time/tests/timer_queue.rs @@ -1,3 +1,7 @@ +//! A test that verifies the correctness of the [`TimerQueue`]. +//! +//! To run this test, you need to activate the `critical-section/std` feature. + use std::{fmt::Debug, time::Duration}; use parking_lot::Mutex;