mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
spawn POC works, likely unsound
This commit is contained in:
parent
4eb4c4e7b2
commit
6bd168d711
9 changed files with 201 additions and 9 deletions
|
|
@ -35,7 +35,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
|
|||
#[allow(non_camel_case_types)]
|
||||
#[derive(Clone, Copy)]
|
||||
#[doc = #doc]
|
||||
enum #t {
|
||||
pub enum #t {
|
||||
#(#variants,)*
|
||||
}
|
||||
));
|
||||
|
|
@ -57,7 +57,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream
|
|||
);
|
||||
items.push(quote!(
|
||||
#[doc = #doc]
|
||||
static mut #rq: #rq_ty = #rq_expr;
|
||||
pub static mut #rq: #rq_ty = #rq_expr;
|
||||
));
|
||||
|
||||
if let Some(ceiling) = channel.ceiling {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue