Skip to content

Commit 9f68fd8

Browse files
authored
Try #70:
2 parents 0296e8e + f6cbef5 commit 9f68fd8

File tree

8 files changed

+14
-20
lines changed

8 files changed

+14
-20
lines changed

.github/bors.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ status = [
1616
"CI (stable, s390x-unknown-linux-gnu)",
1717
"CI (stable, x86_64-unknown-linux-gnu)",
1818
"CI (stable, x86_64-unknown-linux-musl)",
19-
"CI (stable, x86_64-apple-darwin)",
19+
"CI-macOS (stable, x86_64-apple-darwin)",
2020

2121
"CI (stable, --features=async-tokio, x86_64-unknown-linux-gnu)",
2222
"CI (stable, --features=mio-evented, x86_64-unknown-linux-gnu)",
2323

2424
"CI (1.46.0, --features=async-tokio, x86_64-unknown-linux-gnu)",
2525
"CI (1.46.0, --features=mio-evented, x86_64-unknown-linux-gnu)",
2626
"CI (1.46.0, x86_64-unknown-linux-gnu)",
27-
"CI (1.46.0, x86_64-apple-darwin)",
27+
"CI-macOS (1.46.0, x86_64-apple-darwin)",
2828

2929
"checks"
3030
]

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)