Skip to content

Commit

Permalink
Merge #70
Browse files Browse the repository at this point in the history
70: Release 0.6.0 r=nastevens a=eldruin

:tada: 

Co-authored-by: Diego Barrios Romero <[email protected]>
  • Loading branch information
bors[bot] and eldruin authored Sep 24, 2021
2 parents 0296e8e + 02c2b8a commit 8aaea2f
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ status = [

"checks"
]
timeout_sec = 7200
timeout_sec = 3600
34 changes: 33 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,40 @@ jobs:
command: test
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}

ci-linux-msrv:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.46.0]
FEATURES: ["", "--features=async-tokio", "--features=mio-evented"]
TARGET:
- x86_64-unknown-linux-gnu

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ matrix.TARGET }}
override: true

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}

- name: Test
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}

ci-macos:
name: CI-macOS
name: CI
runs-on: macos-11

strategy:
Expand Down
44 changes: 23 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

## [master] - Unreleased

## [0.6.0] - 2021-09-24

### Changed

- [breaking-change] Renamed `use_tokio` feature `async-tokio`.
- Migrated to 'tokio' crate.
- Migrated to `tokio` crate version 1.
- Updated `nix` to version 0.22.
- Minimmum supported Rust version updated to 1.46.0.
- Updated `tokio`to version 1.
- Updated `mio` to version 0.7.
- Updated `futures` to version 0.3.
- Minimmum supported Rust version updated to 1.46.0.

## [0.5.3] - 2018-04-19

Expand Down Expand Up @@ -176,21 +177,22 @@
- Initial version of the library with basic functionality
- Support for `export`/`unexport`/`get_value`/`set_value`/`set_direction`

[master]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.3...master
[0.5.3]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.2...0.5.3
[0.5.2]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.1...0.5.2
[0.5.1]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.0...0.5.1
[0.5.0]: https://github.com/posborne/rust-sysfs-gpio/compare/0.4.4...0.5.0
[0.4.4]: https://github.com/posborne/rust-sysfs-gpio/compare/0.4.3...0.4.4
[0.4.3]: https://github.com/posborne/rust-sysfs-gpio/compare/0.4.2...0.4.3
[0.4.2]: https://github.com/posborne/rust-sysfs-gpio/compare/0.4.1...0.4.2
[0.4.1]: https://github.com/posborne/rust-sysfs-gpio/compare/0.4.0...0.4.1
[0.4.0]: https://github.com/posborne/rust-sysfs-gpio/compare/0.3.3...0.4.0
[0.3.3]: https://github.com/posborne/rust-sysfs-gpio/compare/0.3.2...0.3.3
[0.3.2]: https://github.com/posborne/rust-sysfs-gpio/compare/0.3.1...0.3.2
[0.3.1]: https://github.com/posborne/rust-sysfs-gpio/compare/0.3.0...0.3.1
[0.3.0]: https://github.com/posborne/rust-sysfs-gpio/compare/0.2.1...0.3.0
[0.2.1]: https://github.com/posborne/rust-sysfs-gpio/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/posborne/rust-sysfs-gpio/compare/0.1.1...0.2.0
[0.1.1]: https://github.com/posborne/rust-sysfs-gpio/compare/0.1.0...0.1.1
[0.1.0]: https://github.com/posborne/rust-sysfs-gpio/compare/33b28ae3115d91ae6612245e5b8d8c636dcdb69c...0.1.0
[master]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.6.0...master
[0.6.0]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.5.3...0.6.0
[0.5.3]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.5.2...0.5.3
[0.5.2]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.5.1...0.5.2
[0.5.1]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.5.0...0.5.1
[0.5.0]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.4.4...0.5.0
[0.4.4]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.4.3...0.4.4
[0.4.3]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.4.2...0.4.3
[0.4.2]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.4.1...0.4.2
[0.4.1]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.4.0...0.4.1
[0.4.0]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.3.3...0.4.0
[0.3.3]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.3.2...0.3.3
[0.3.2]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.3.1...0.3.2
[0.3.1]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.3.0...0.3.1
[0.3.0]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.2.1...0.3.0
[0.2.1]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.1.1...0.2.0
[0.1.1]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/0.1.0...0.1.1
[0.1.0]: https://github.com/rust-embedded/rust-sysfs-gpio/compare/33b28ae3115d91ae6612245e5b8d8c636dcdb69c...0.1.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sysfs_gpio"
version = "0.5.4"
version = "0.6.0" # remember to update html_root_url
authors = [
"Paul Osborne <[email protected]>",
"The Embedded Linux Team <[email protected]>",
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
sysfs_gpio
==========

[![Build Status](https://travis-ci.org/rust-embedded/rust-sysfs-gpio.svg?branch=master)](https://travis-ci.org/rust-embedded/rust-sysfs-gpio)
[![Build Status](https://github.com/rust-embedded/rust-sysfs-gpio/workflows/CI/badge.svg)](https://github.com/rust-embedded/rust-sysfs-gpio/actions)
[![Version](https://img.shields.io/crates/v/sysfs-gpio.svg)](https://crates.io/crates/sysfs-gpio)
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.46+-blue.svg)
[![License](https://img.shields.io/crates/l/sysfs-gpio.svg)](https://github.com/rust-embedded/rust-sysfs-gpio/blob/master/README.md#license)

- [API Documentation](https://docs.rs/sysfs_gpio)
Expand All @@ -27,22 +28,20 @@ To use `sysfs_gpio`, first add this to your `Cargo.toml`:

```toml
[dependencies]
sysfs_gpio = "0.5"
sysfs_gpio = "0.6"
```

Then, add this to your crate root:

```rust
extern crate sysfs_gpio;
use sysfs_gpio;
```

## Example/API

Blinking an LED:

```rust
extern crate sysfs_gpio;

use sysfs_gpio::{Direction, Pin};
use std::thread::sleep;
use std::time::Duration;
Expand Down
2 changes: 0 additions & 2 deletions examples/blinky.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate sysfs_gpio;

use std::env;
use std::thread::sleep;
use std::time::Duration;
Expand Down
2 changes: 0 additions & 2 deletions examples/interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate sysfs_gpio;

use std::env;
use std::io::prelude::*;
use std::io::stdout;
Expand Down
2 changes: 0 additions & 2 deletions examples/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

extern crate sysfs_gpio;

use std::env;
use std::thread::sleep;
use std::time::Duration;
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
//! the following:
//!
//! ```no_run
//! extern crate sysfs_gpio;
//!
//! use sysfs_gpio::{Direction, Pin};
//! use std::thread::sleep;
//! use std::time::Duration;
Expand All @@ -43,6 +41,7 @@
//! ```
#![cfg_attr(feature = "async-tokio", allow(deprecated))]
#![doc(html_root_url = "https://docs.rs/sysfs-gpio/0.6.0")]

#[cfg(feature = "async-tokio")]
extern crate futures;
Expand Down

0 comments on commit 8aaea2f

Please sign in to comment.