[tests] Add a proc macro to generate tests for OnlineBlockchain types

This commit is contained in:
Alekos Filini committed 2020-08-10 17:18:17 +02:00
1 parent c90c752f21
commit 9e5023670e
16 files changed
+1018 -17

No files matched your search

+3
View File
@@ -11,5 +11,8 @@ syn = { version = "1.0", features = ["parsing"] }
proc-macro2 = "1.0"
quote = "1.0"
[features]
debug = ["syn/extra-traits"]
[lib]
proc-macro = true
+2 -1
View File
@@ -85,7 +85,8 @@ pub fn maybe_async(_attr: TokenStream, item: TokenStream) -> TokenStream {
} else {
(quote! {
compile_error!("#[maybe_async] can only be used on methods, trait or trait impl blocks")
}).into()
})
.into()
}
}