From d445b20b1853e2e9de60b24e0ed04a463c8cd05f Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Mon, 10 Apr 2023 10:34:00 +0200 Subject: Add test for timer queue & monotonic --- rtic-time/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rtic-time/Cargo.toml') diff --git a/rtic-time/Cargo.toml b/rtic-time/Cargo.toml index 462ad5d..dda8e60 100644 --- a/rtic-time/Cargo.toml +++ b/rtic-time/Cargo.toml @@ -20,3 +20,10 @@ license = "MIT OR Apache-2.0" critical-section = "1" futures-util = { version = "0.3.25", default-features = false } 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" -- cgit v1.2.3 From 452bad69b4b6d08b9e13e8ddf881385c6806c233 Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Mon, 10 Apr 2023 10:52:21 +0200 Subject: Do not activate critical-section/std by default --- rtic-time/Cargo.toml | 1 - 1 file changed, 1 deletion(-) (limited to 'rtic-time/Cargo.toml') diff --git a/rtic-time/Cargo.toml b/rtic-time/Cargo.toml index dda8e60..69205fd 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" -- cgit v1.2.3 From 5bcbe92f55e2376be0717636f6d4e30227040496 Mon Sep 17 00:00:00 2001 From: datdenkikniet Date: Mon, 10 Apr 2023 13:05:36 +0200 Subject: Use artificial time instead --- rtic-time/Cargo.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rtic-time/Cargo.toml') diff --git a/rtic-time/Cargo.toml b/rtic-time/Cargo.toml index 69205fd..b0746c1 100644 --- a/rtic-time/Cargo.toml +++ b/rtic-time/Cargo.toml @@ -23,6 +23,4 @@ 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"] } -pretty_env_logger = "0.4" -log = "0.4" +cassette = "0.2" -- cgit v1.2.3