aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Greig <adam@adamgreig.com> 2022-05-15 22:09:34 +0100
committerGravatar Adam Greig <adam@adamgreig.com> 2022-05-15 22:17:54 +0100
commit6a650bc02e4a0807298ba5eeab420a99f9f7785f (patch)
tree8b925d1ba1ed54eb9e659fee530281d5736fda4a
parentb581ec74b295811387b4a2a4f4cfeeb91ec788d8 (diff)
downloadcortex-m-6a650bc02e4a0807298ba5eeab420a99f9f7785f.tar.gz
cortex-m-6a650bc02e4a0807298ba5eeab420a99f9f7785f.tar.zst
cortex-m-6a650bc02e4a0807298ba5eeab420a99f9f7785f.zip
Permit using inline-asm feature on stable Rust compilers
-rw-r--r--CHANGELOG.md7
-rw-r--r--src/lib.rs4
2 files changed, 9 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ddc03a7..a406a05 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,10 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
+## [v0.7.5] - 2022-05-15
+
### Deprecated
- the `ptr()` function on all peripherals register blocks in favor of
the associated constant `PTR` (#386).
+### Changed
+
+- The `inline-asm` feature no longer requires a nightly Rust compiler, but
+ does require Rust 1.59 or above.
+
## [v0.7.4] - 2021-12-31
### Added
diff --git a/src/lib.rs b/src/lib.rs
index beff6e8..4790f98 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -22,7 +22,8 @@
//! - Some of the `register` API only becomes available only when `inline-asm` is enabled. Check the
//! API docs for details.
//!
-//! The disadvantage is that `inline-asm` requires a nightly toolchain.
+//! The disadvantage is that `inline-asm` requires a Rust version at least 1.59 to use the `asm!()`
+//! macro. In the future 0.8 and above versions of `cortex-m`, this feature will always be enabled.
//!
//! ## `cm7-r0p1`
//!
@@ -55,7 +56,6 @@
//! This crate is guaranteed to compile on stable Rust 1.38 and up. It *might*
//! compile with older versions but that may change in any new patch release.
-#![cfg_attr(feature = "inline-asm", feature(asm))]
#![deny(missing_docs)]
#![no_std]
#![allow(clippy::identity_op)]