Skip to content

Commit a78a87a

Browse files
committed
Add forwards-compatible 0.6.5
1 parent 30d9d19 commit a78a87a

28 files changed

+126
-2302
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: CI
7+
8+
jobs:
9+
ci-linux:
10+
runs-on: ubuntu-latest
11+
continue-on-error: ${{ matrix.experimental || false }}
12+
strategy:
13+
matrix:
14+
# All generated code should be running on stable now
15+
rust: [stable]
16+
17+
include:
18+
# Test MSRV
19+
- rust: 1.38.0
20+
21+
# Test nightly but don't fail
22+
- rust: nightly
23+
experimental: true
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions-rs/toolchain@v1
27+
with:
28+
profile: minimal
29+
toolchain: ${{ matrix.rust }}
30+
override: true
31+
- name: Run tests
32+
run: cargo test --all
33+
34+
# FIXME: test on macOS and Windows

.github/workflows/clippy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request_target:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
if: github.event_name == 'pull_request_target'
13+
with:
14+
ref: refs/pull/${{ github.event.number }}/head
15+
- uses: actions/checkout@v2
16+
if: github.event_name != 'pull_request_target'
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
profile: minimal
20+
toolchain: stable
21+
override: true
22+
components: clippy
23+
- uses: actions-rs/clippy-check@v1
24+
with:
25+
token: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v0.6.5] - 2021-01-13
11+
12+
### Changed
13+
14+
- This release is forwards-compatible with cortex-m 0.7, and depends on and
15+
re-exports many types from that version. Both 0.6.5 and 0.7 may co-exist
16+
in a build.
17+
1018
## [v0.6.4] - 2020-10-26
1119

1220
### Changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ license = "MIT OR Apache-2.0"
1111
name = "cortex-m"
1212
readme = "README.md"
1313
repository = "https://github.com/rust-embedded/cortex-m"
14-
version = "0.6.4"
14+
version = "0.6.5"
1515
edition = "2018"
16-
links = "cortex-m" # prevent multiple versions of this crate to be linked together
1716

1817
[dependencies]
1918
aligned = "0.3.1"
2019
bare-metal = { version = "0.2.0", features = ["const-fn"] }
2120
volatile-register = "0.2.0"
2221
bitfield = "0.13.2"
22+
cortex_m_0_7 = { package = "cortex-m", version = "0.7.0" }
2323

2424
[features]
2525
const-fn = []
26-
cm7-r0p1 = []
27-
inline-asm = []
26+
cm7-r0p1 = ["cortex_m_0_7/cm7-r0p1"]
27+
inline-asm = ["cortex_m_0_7/inline-asm"]

build.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
use std::path::PathBuf;
2-
use std::{env, fs};
1+
use std::env;
32

43
fn main() {
54
let target = env::var("TARGET").unwrap();
6-
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
7-
let name = env::var("CARGO_PKG_NAME").unwrap();
8-
9-
if target.starts_with("thumb") {
10-
fs::copy(
11-
format!("bin/{}.a", target),
12-
out_dir.join(format!("lib{}.a", name)),
13-
).unwrap();
14-
15-
println!("cargo:rustc-link-lib=static={}", name);
16-
println!("cargo:rustc-link-search={}", out_dir.display());
17-
}
185

196
if target.starts_with("thumbv6m-") {
207
println!("cargo:rustc-cfg=cortex_m");

0 commit comments

Comments
 (0)