Skip to content

Commit e943bfe

Browse files
authored
Try #70:
2 parents 0296e8e + b04729e commit e943bfe

File tree

9 files changed

+46
-20
lines changed

9 files changed

+46
-20
lines changed

.github/bors.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ status = [
2828

2929
"checks"
3030
]
31-
timeout_sec = 7200
31+
timeout_sec = 3600

.github/workflows/ci.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,40 @@ jobs:
6565
command: test
6666
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
6767

68+
ci-linux-msrv:
69+
name: CI
70+
runs-on: ubuntu-latest
71+
strategy:
72+
matrix:
73+
rust: [1.46.0]
74+
FEATURES: ["", "--features=async-tokio", "--features=mio-evented"]
75+
TARGET:
76+
- x86_64-unknown-linux-gnu
77+
78+
steps:
79+
- uses: actions/checkout@v2
80+
- uses: actions-rs/toolchain@v1
81+
with:
82+
profile: minimal
83+
toolchain: ${{ matrix.rust }}
84+
target: ${{ matrix.TARGET }}
85+
override: true
86+
87+
- name: Build
88+
uses: actions-rs/cargo@v1
89+
with:
90+
command: build
91+
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
92+
93+
- name: Test
94+
uses: actions-rs/cargo@v1
95+
with:
96+
use-cross: true
97+
command: test
98+
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
99+
68100
ci-macos:
69-
name: CI-macOS
101+
name: CI
70102
runs-on: macos-11
71103

72104
strategy:

CHANGELOG.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
## [master] - Unreleased
44

5+
## [0.6.0] - 2021-09-24
6+
57
### Changed
68

79
- [breaking-change] Renamed `use_tokio` feature `async-tokio`.
8-
- Migrated to 'tokio' crate.
10+
- Migrated to `tokio` crate version 1.
911
- Updated `nix` to version 0.22.
10-
- Minimmum supported Rust version updated to 1.46.0.
11-
- Updated `tokio`to version 1.
1212
- Updated `mio` to version 0.7.
1313
- Updated `futures` to version 0.3.
14+
- Minimmum supported Rust version updated to 1.46.0.
1415

1516
## [0.5.3] - 2018-04-19
1617

@@ -176,7 +177,8 @@
176177
- Initial version of the library with basic functionality
177178
- Support for `export`/`unexport`/`get_value`/`set_value`/`set_direction`
178179

179-
[master]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.3...master
180+
[master]: https://github.com/posborne/rust-sysfs-gpio/compare/0.6.0...master
181+
[0.6.0]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.3...0.6.0
180182
[0.5.3]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.2...0.5.3
181183
[0.5.2]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.1...0.5.2
182184
[0.5.1]: https://github.com/posborne/rust-sysfs-gpio/compare/0.5.0...0.5.1

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sysfs_gpio"
3-
version = "0.5.4"
3+
version = "0.6.0" # remember to update html_root_url
44
authors = [
55
"Paul Osborne <[email protected]>",
66
"The Embedded Linux Team <[email protected]>",

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
sysfs_gpio
22
==========
33

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

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

2829
```toml
2930
[dependencies]
30-
sysfs_gpio = "0.5"
31+
sysfs_gpio = "0.6"
3132
```
3233

3334
Then, add this to your crate root:
3435

3536
```rust
36-
extern crate sysfs_gpio;
37+
use sysfs_gpio;
3738
```
3839

3940
## Example/API
4041

4142
Blinking an LED:
4243

4344
```rust
44-
extern crate sysfs_gpio;
45-
4645
use sysfs_gpio::{Direction, Pin};
4746
use std::thread::sleep;
4847
use std::time::Duration;

examples/blinky.rs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9-
extern crate sysfs_gpio;
10-
119
use std::env;
1210
use std::thread::sleep;
1311
use std::time::Duration;

examples/interrupt.rs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9-
extern crate sysfs_gpio;
10-
119
use std::env;
1210
use std::io::prelude::*;
1311
use std::io::stdout;

examples/poll.rs

-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
// option. This file may not be copied, modified, or distributed
77
// except according to those terms.
88

9-
extern crate sysfs_gpio;
10-
119
use std::env;
1210
use std::thread::sleep;
1311
use std::time::Duration;

src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
//! the following:
2323
//!
2424
//! ```no_run
25-
//! extern crate sysfs_gpio;
26-
//!
2725
//! use sysfs_gpio::{Direction, Pin};
2826
//! use std::thread::sleep;
2927
//! use std::time::Duration;
@@ -43,6 +41,7 @@
4341
//! ```
4442
4543
#![cfg_attr(feature = "async-tokio", allow(deprecated))]
44+
#![doc(html_root_url = "https://docs.rs/sysfs-gpio/0.6.0")]
4645

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

0 commit comments

Comments
 (0)