port subxt-signer to no-std (such a pain)

This commit is contained in:
Tadeo hepperle
2024-02-02 14:39:03 +01:00
parent 930f2c4300
commit 14b21ab0df
13 changed files with 378 additions and 62 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ macro_rules! once_static {
$(
$(#[$attr])*
$vis fn $name() -> &'static $ty {
static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
static VAR: once_cell::sync::OnceCell<$ty> = once_cell::sync::OnceCell::new();
VAR.get_or_init(|| { $expr })
}
)+
@@ -33,7 +33,7 @@ macro_rules! once_static_cloned {
$(
$(#[$attr])*
$vis fn $name() -> $ty {
static VAR: std::sync::OnceLock<$ty> = std::sync::OnceLock::new();
static VAR: once_cell::sync::OnceCell<$ty> = once_cell::sync::OnceCell::new();
VAR.get_or_init(|| { $expr }).clone()
}
)+