Skip to content

Commit 012e724

Browse files
bors[bot]japaric
andcommitted
Merge #4
4: make the "const-fn" feature opt-in r=japaric a=japaric Co-authored-by: Jorge Aparicio <[email protected]>
2 parents c984515 + ea56aff commit 012e724

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

.travis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ language: rust
33
matrix:
44
include:
55
- env: TARGET=x86_64-unknown-linux-gnu
6-
# - env: TARGET=thumbv6m-none-eabi
7-
# - env: TARGET=thumbv7m-none-eabi
6+
rust: stable
7+
8+
- env: TARGET=thumbv6m-none-eabi
9+
rust: beta
10+
11+
- env: TARGET=thumbv7m-none-eabi
12+
rust: beta
13+
14+
- env: TARGET=x86_64-unknown-linux-gnu
15+
rust:
16+
817
- env: TARGET=thumbv6m-none-eabi
918
rust: nightly
19+
1020
- env: TARGET=thumbv7m-none-eabi
1121
rust: nightly
1222

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased]
77

8+
## [v0.2.0] - 2018-05-10
9+
10+
### Changed
11+
12+
- [breaking-change] `const-fn` is no longer a default feature (i.e. a feature that's enabled by
13+
default). The consequence is that this crate now compiles on 1.27 (beta) by default, and opting
14+
into `const-fn` requires nightly.
15+
816
## [v0.1.2] - 2018-04-24
917

1018
### Added
@@ -21,5 +29,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2129

2230
- Initial release
2331

24-
[Unreleased]: https://github.com/japaric/bare-metal/compare/v0.1.1...HEAD
32+
[Unreleased]: https://github.com/japaric/bare-metal/compare/v0.2.0...HEAD
33+
[v0.2.0]: https://github.com/japaric/bare-metal/compare/v0.1.2...v0.2.0
34+
[v0.1.2]: https://github.com/japaric/bare-metal/compare/v0.1.1...v0.1.2
2535
[v0.1.1]: https://github.com/japaric/bare-metal/compare/v0.1.0...v0.1.1

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ keywords = ["bare-metal", "register", "peripheral", "interrupt"]
77
license = "MIT OR Apache-2.0"
88
name = "bare-metal"
99
repository = "https://github.com/japaric/bare-metal"
10-
version = "0.1.2"
10+
version = "0.2.0"
1111

1212
[features]
13-
default = ["const-fn"]
1413
const-fn = []

ci/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
set -euxo pipefail
22

33
main() {
4-
cargo check --target $TARGET --no-default-features
4+
cargo check --target $TARGET
55

66
if [ $TRAVIS_RUST_VERSION = nightly ]; then
7-
cargo check --target $TARGET
7+
cargo check --target $TARGET --features const-fn
88
fi
99
}
1010

0 commit comments

Comments
 (0)