You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the cortex-m still hides const versions of some functions (especially Mutex::new()) behind the const-fn feature, but these have worked on stable Rust for some time now.
It looks like this crate does not yet follow the WG MSRV policy so I'm not really sure what the MSRV even is, but perhaps we could allow it to be 1.31 and therefore either remove the const-fn feature or make it a default.
159: Define MSRV to be 1.31.0 and unconditionally use const-fn r=therealprof a=adamgreig
As per https://github.com/rust-embedded/wg/blob/master/ops/msrv.md we should have a defined MSRV for this crate. This PR proposes setting it to 1.31 to allow use of `const-fn` from bare-metal by default, and updates `Cargo.toml` accordingly. It also sets the edition to 2018, permitted by an MSRV of 1.31.
Since this PR _introduces_ an MSRV I propose it not requiring a semver bump, and we instead would look to release this change as `0.6.1`.
Closes#153.
Co-authored-by: Adam Greig <adam@ael.co.uk>
Co-authored-by: Adam Greig <adam@adamgreig.com>
At the moment the cortex-m still hides
const
versions of some functions (especiallyMutex::new()
) behind theconst-fn
feature, but these have worked on stable Rust for some time now.It looks like this crate does not yet follow the WG MSRV policy so I'm not really sure what the MSRV even is, but perhaps we could allow it to be 1.31 and therefore either remove the
const-fn
feature or make it a default.cc rust-embedded/book#196
The text was updated successfully, but these errors were encountered: