File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ pub fn render(d: &Device, target: &Target) -> Result<Vec<Tokens>> {
30
30
if * target != Target :: None {
31
31
out. push ( quote ! {
32
32
#![ cfg_attr( feature = "rt" , feature( global_asm) ) ]
33
- #![ cfg_attr( feature = "rt" , feature( macro_reexport ) ) ]
33
+ #![ cfg_attr( feature = "rt" , feature( use_extern_macros ) ) ]
34
34
#![ cfg_attr( feature = "rt" , feature( used) ) ]
35
35
} ) ;
36
36
}
@@ -50,17 +50,19 @@ pub fn render(d: &Device, target: &Target) -> Result<Vec<Tokens>> {
50
50
Target :: CortexM => {
51
51
out. push ( quote ! {
52
52
extern crate cortex_m;
53
- #[ macro_reexport( default_handler, exception) ]
54
53
#[ cfg( feature = "rt" ) ]
55
54
extern crate cortex_m_rt;
55
+ #[ cfg( feature = "rt" ) ]
56
+ pub use cortex_m_rt:: { default_handler, exception} ;
56
57
} ) ;
57
58
}
58
59
Target :: Msp430 => {
59
60
out. push ( quote ! {
60
61
extern crate msp430;
61
- #[ macro_reexport( default_handler) ]
62
62
#[ cfg( feature = "rt" ) ]
63
63
extern crate msp430_rt;
64
+ #[ cfg( feature = "rt" ) ]
65
+ pub use msp430_rt:: default_handler;
64
66
} ) ;
65
67
}
66
68
Target :: RISCV => {
You can’t perform that action at this time.
0 commit comments