From f8c1ef0109a8177cf4747a891e6c462c4ef59c92 Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Thu, 1 Feb 2024 05:18:20 +0100 Subject: add println! and panic! macro The rust lazy_static requires interior mutability. I have to include a Mutex impl (spin::Mutex). But I'd like to implement my own primitives. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 5f91e89..700e7ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,11 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +spin = "0.9.8" + +[dependencies.lazy_static] +version = "1.4" +features = ["spin_no_std"] [build] -- cgit v1.2.3-70-g09d2