File tree Expand file tree Collapse file tree 4 files changed +26
-8
lines changed Expand file tree Collapse file tree 4 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,26 @@ matrix:
22
22
rust : stable
23
23
if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
24
24
25
+ # MSRV
26
+ - env : TARGET=thumbv6m-none-eabi
27
+ rust : 1.31.0
28
+ if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
29
+
30
+ # MSRV
31
+ - env : TARGET=thumbv7m-none-eabi
32
+ rust : 1.31.0
33
+ if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
34
+
35
+ # MSRV
36
+ - env : TARGET=thumbv7em-none-eabi
37
+ rust : 1.31.0
38
+ if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
39
+
40
+ # MSRV
41
+ - env : TARGET=thumbv7em-none-eabihf
42
+ rust : 1.31.0
43
+ if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
44
+
25
45
- env : TARGET=thumbv6m-none-eabi
26
46
rust : nightly
27
47
if : (branch = staging OR branch = trying) OR (type = pull_request AND branch = master)
Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ links = "cortex-m" # prevent multiple versions of this crate to be linked toget
16
16
17
17
[dependencies ]
18
18
aligned = " 0.3.1"
19
- bare-metal = " 0.2.0"
19
+ bare-metal = { version = " 0.2.0" , features = [ " const-fn " ] }
20
20
volatile-register = " 0.2.0"
21
21
22
22
[features ]
23
23
cm7-r0p1 = []
24
- const-fn = [" bare-metal/const-fn" ]
25
24
inline-asm = []
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ main() {
8
8
cargo check --target $TARGET
9
9
10
10
if [ $TRAVIS_RUST_VERSION = nightly ]; then
11
- cargo check --target $TARGET --features ' const-fn inline-asm'
11
+ cargo check --target $TARGET --features ' inline-asm'
12
12
fi
13
13
14
14
case $TARGET in
15
15
thumbv7em-none-eabi* )
16
16
cargo check --target $TARGET --features cm7-r0p1
17
17
18
18
if [ $TRAVIS_RUST_VERSION = nightly ]; then
19
- cargo check --target $TARGET --features ' cm7-r0p1 const-fn inline-asm'
19
+ cargo check --target $TARGET --features ' cm7-r0p1 inline-asm'
20
20
fi
21
21
;;
22
22
Original file line number Diff line number Diff line change 24
24
//!
25
25
//! The disadvantage is that `inline-asm` requires a nightly toolchain.
26
26
//!
27
- //! ## `const-fn`
27
+ //! # Minimum Supported Rust Version (MSRV)
28
28
//!
29
- //! Enabling this feature turns the `Mutex.new` constructor into a `const fn`.
30
- //!
31
- //! This feature requires a nightly toolchain.
29
+ //! This crate is guaranteed to compile on stable Rust 1.31 and up. It *might*
30
+ //! compile with older versions but that may change in any new patch release.
32
31
33
32
#![ cfg_attr( feature = "inline-asm" , feature( asm) ) ]
34
33
#![ deny( missing_docs) ]
You can’t perform that action at this time.
0 commit comments