diff --git a/.github/bors.toml b/.github/bors.toml index 975deccbd..7f344913e 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -28,4 +28,4 @@ status = [ "checks" ] -timeout_sec = 7200 +timeout_sec = 3600 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ac99968a..a7e407704 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c6803fee..f1cdca710 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 43e3094d1..03fd9650f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 ", "The Embedded Linux Team ", diff --git a/README.md b/README.md index d8a5fa4d9..3195447ee 100644 --- a/README.md +++ b/README.md @@ -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) @@ -27,13 +28,13 @@ 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 @@ -41,8 +42,6 @@ extern crate sysfs_gpio; Blinking an LED: ```rust -extern crate sysfs_gpio; - use sysfs_gpio::{Direction, Pin}; use std::thread::sleep; use std::time::Duration; diff --git a/examples/blinky.rs b/examples/blinky.rs index 4e917febc..c541a35f0 100644 --- a/examples/blinky.rs +++ b/examples/blinky.rs @@ -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; diff --git a/examples/interrupt.rs b/examples/interrupt.rs index ef0b4e5ea..1273109a4 100644 --- a/examples/interrupt.rs +++ b/examples/interrupt.rs @@ -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; diff --git a/examples/poll.rs b/examples/poll.rs index 1482f0173..406da4c23 100644 --- a/examples/poll.rs +++ b/examples/poll.rs @@ -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; diff --git a/src/lib.rs b/src/lib.rs index 46a68f853..ddfe6c76b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; @@ -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;