Skip to content

Release 0.6.0 #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")]
Copy link
Member

@nastevens nastevens Sep 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed right? It seems like it'd be quickly out of date in any case.

Edit: I see the reminder in Cargo.toml so definitely intentional. Could you help me understand what this is doing please and why it's useful?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this recommendation has been removed from the API guidelines: rust-lang/api-guidelines#230
I never liked it TBH. Thanks!


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