Skip to content

Commit 0d8d936

Browse files
bors[bot]japariceldruin
authored
Merge #32
32: Remove unstable feature and code and modernize r=therealprof a=eldruin The tests can now be run on Rust >= 1.34.0 (due to Infallible). Closes #28 Co-authored-by: Jorge Aparicio <[email protected]> Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents f6f89fc + 4cb937c commit 0d8d936

File tree

5 files changed

+51
-291
lines changed

5 files changed

+51
-291
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55

66
name: Continuous integration
77

8+
env:
9+
RUSTFLAGS: '-D warnings'
10+
811
jobs:
912
ci-linux:
1013
runs-on: ubuntu-latest
@@ -37,9 +40,8 @@ jobs:
3740
- uses: actions-rs/cargo@v1
3841
with:
3942
command: check
40-
args: --target=${{ matrix.TARGET }} --features unstable
43+
args: --target=${{ matrix.TARGET }}
4144
- uses: actions-rs/cargo@v1
42-
if: ${{ matrix.rust == 'nightly' }}
4345
with:
4446
command: test
45-
args: --target=${{ matrix.TARGET }} --features unstable
47+
args: --target=${{ matrix.TARGET }}

.github/workflows/clippy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55

66
name: Clippy check
7+
8+
env:
9+
RUSTFLAGS: '-D warnings'
10+
711
jobs:
812
clippy_check:
913
runs-on: ubuntu-latest

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Changed
11+
12+
- [breaking-change] The `unstable` feature and its code has been removed.
13+
This includes the macros `try_nb!` and `await!`.
14+
15+
## [v0.1.2] - 2019-04-21
16+
17+
### Added
18+
19+
- `Error<E>` gained a `map` method that lets you transform the error in the
20+
`Error::Other` variant into a different type.
21+
22+
- `Error<E>` now implements the `From<E>` trait.
23+
1024
## [v0.1.1] - 2018-01-10
1125

1226
### Fixed
@@ -17,5 +31,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1731

1832
Initial release
1933

20-
[Unreleased]: https://github.com/japaric/nb/compare/v0.1.1...HEAD
21-
[v0.1.1]: https://github.com/japaric/nb/compare/v0.1.0...v0.1.1
34+
[Unreleased]: https://github.com/rust-embedded/nb/compare/v0.1.2...HEAD
35+
[v0.1.2]: https://github.com/rust-embedded/nb/compare/v0.1.1...v0.1.2
36+
[v0.1.1]: https://github.com/rust-embedded/nb/compare/v0.1.0...v0.1.1

Cargo.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,5 @@ repository = "https://github.com/rust-embedded/nb"
99
homepage = "https://github.com/rust-embedded/nb"
1010
documentation = "https://docs.rs/nb"
1111
readme = "README.md"
12-
version = "0.1.1"
13-
14-
[features]
15-
unstable = []
16-
17-
[dev-dependencies]
18-
futures = "0.1.17"
12+
version = "0.1.2"
13+
edition = "2018"

0 commit comments

Comments
 (0)