You've already forked AstralRinth
forked from didirus/AstralRinth
Code signing + auto updater (#122)
* Code signing + auto updater * remove dist * update actions * fixes * fix more * commit * fix cache dir * quotes * fix hopefully? * why yaml * Fix cache dep path * Fix updating artifacts * fix ubuntu ver * enable autoupdater * fix pubkey * fix invalid config * pass in signing vars * update pubkey * Improve compile times
This commit is contained in:
@@ -13,22 +13,19 @@ pub fn debug_pin(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
||||
let sig = &input.sig;
|
||||
let body = &input.block;
|
||||
|
||||
// Generate tokens for the common part
|
||||
let common_tokens = quote! {
|
||||
#(#attrs)*
|
||||
#vis #sig
|
||||
};
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
let result = quote! {
|
||||
#[cfg(debug_assertions)]
|
||||
#common_tokens {
|
||||
#(#attrs)*
|
||||
#vis #sig {
|
||||
Box::pin(async move {
|
||||
#body
|
||||
}).await
|
||||
}
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
#common_tokens {
|
||||
};
|
||||
#[cfg(not(debug_assertions))]
|
||||
let result = quote! {
|
||||
#(#attrs)*
|
||||
#vis #sig {
|
||||
#body
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user