File tree 2 files changed +15
-1
lines changed 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 42
42
- name : Run cargo check (without dev-dependencies to catch missing feature flags)
43
43
if : startsWith(matrix.rust, 'nightly')
44
44
run : cargo check -Z features=dev_dep
45
+ - name : Add rust-src
46
+ if : startsWith(matrix.rust, 'nightly')
47
+ run : rustup component add rust-src
48
+ # - name: Check selected Tier 3 targets
49
+ # if: startsWith(matrix.rust, 'nightly') && matrix.os == 'ubuntu-latest'
50
+ # run: cargo check -Z build-std --target=riscv32imc-esp-espidf
45
51
- run : cargo test
46
52
47
53
# Copied from: https://github.com/rust-lang/stacker/pull/19/files
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ cfg_if::cfg_if! {
43
43
}
44
44
}
45
45
46
+ #[ cfg( not( target_os = "espidf" ) ) ]
47
+ const TIMER_QUEUE_SIZE : usize = 1000 ;
48
+
49
+ /// ESP-IDF - being an embedded OS - does not need so many timers
50
+ /// and this saves ~ 20K RAM which is a lot for an MCU with RAM < 400K
51
+ #[ cfg( target_os = "espidf" ) ]
52
+ const TIMER_QUEUE_SIZE : usize = 100 ;
53
+
46
54
const READ : usize = 0 ;
47
55
const WRITE : usize = 1 ;
48
56
@@ -98,7 +106,7 @@ impl Reactor {
98
106
sources : Mutex :: new ( Slab :: new ( ) ) ,
99
107
events : Mutex :: new ( Vec :: new ( ) ) ,
100
108
timers : Mutex :: new ( BTreeMap :: new ( ) ) ,
101
- timer_ops : ConcurrentQueue :: bounded ( 1000 ) ,
109
+ timer_ops : ConcurrentQueue :: bounded ( TIMER_QUEUE_SIZE ) ,
102
110
}
103
111
} )
104
112
}
You can’t perform that action at this time.
0 commit comments