aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2024-02-01 05:18:20 +0100
committerTianhao Wang <wth@riseup.net>2024-02-01 05:18:25 +0100
commitf8c1ef0109a8177cf4747a891e6c462c4ef59c92 (patch)
tree1d608c0b41b98304973e1d53bc82be848d83d022 /Cargo.toml
parent2bdafab229439dcd9968114ab232ed0a3a218bfb (diff)
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.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml5
1 files changed, 5 insertions, 0 deletions
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]