Skip to content

Commit

Permalink
Merge #32
Browse files Browse the repository at this point in the history
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 <jorge@japaric.io>
Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
  • Loading branch information
3 people committed Jul 3, 2020
2 parents f6f89fc + 4cb937c commit 0d8d936
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 291 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:

name: Continuous integration

env:
RUSTFLAGS: '-D warnings'

jobs:
ci-linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -37,9 +40,8 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --target=${{ matrix.TARGET }} --features unstable
args: --target=${{ matrix.TARGET }}
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust == 'nightly' }}
with:
command: test
args: --target=${{ matrix.TARGET }} --features unstable
args: --target=${{ matrix.TARGET }}
4 changes: 4 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request:

name: Clippy check

env:
RUSTFLAGS: '-D warnings'

jobs:
clippy_check:
runs-on: ubuntu-latest
Expand Down
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

### Changed

- [breaking-change] The `unstable` feature and its code has been removed.
This includes the macros `try_nb!` and `await!`.

## [v0.1.2] - 2019-04-21

### Added

- `Error<E>` gained a `map` method that lets you transform the error in the
`Error::Other` variant into a different type.

- `Error<E>` now implements the `From<E>` trait.

## [v0.1.1] - 2018-01-10

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

Initial release

[Unreleased]: https://github.com/japaric/nb/compare/v0.1.1...HEAD
[v0.1.1]: https://github.com/japaric/nb/compare/v0.1.0...v0.1.1
[Unreleased]: https://github.com/rust-embedded/nb/compare/v0.1.2...HEAD
[v0.1.2]: https://github.com/rust-embedded/nb/compare/v0.1.1...v0.1.2
[v0.1.1]: https://github.com/rust-embedded/nb/compare/v0.1.0...v0.1.1
9 changes: 2 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,5 @@ repository = "https://github.com/rust-embedded/nb"
homepage = "https://github.com/rust-embedded/nb"
documentation = "https://docs.rs/nb"
readme = "README.md"
version = "0.1.1"

[features]
unstable = []

[dev-dependencies]
futures = "0.1.17"
version = "0.1.2"
edition = "2018"
Loading

0 comments on commit 0d8d936

Please sign in to comment.