File tree 3 files changed +15
-8
lines changed 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ## [ v1.0.0] - 2020-07-07
11
+
10
12
### Changed
11
13
12
14
- [ breaking-change] The ` unstable ` feature and its code has been removed.
@@ -31,6 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
31
33
32
34
Initial release
33
35
34
- [ Unreleased ] : https://github.com/rust-embedded/nb/compare/v0.1.2...HEAD
36
+ [ Unreleased ] : https://github.com/rust-embedded/nb/compare/v1.0.0...HEAD
37
+ [ v1.0.0 ] : https://github.com/rust-embedded/nb/compare/v0.1.2...v1.0.0
35
38
[ v0.1.2 ] : https://github.com/rust-embedded/nb/compare/v0.1.1...v0.1.2
36
39
[ v0.1.1 ] : https://github.com/rust-embedded/nb/compare/v0.1.0...v0.1.1
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ repository = "https://github.com/rust-embedded/nb"
9
9
homepage = " https://github.com/rust-embedded/nb"
10
10
documentation = " https://docs.rs/nb"
11
11
readme = " README.md"
12
- version = " 0.1.2 "
12
+ version = " 1.0.0 " # remember to update html_root_url
13
13
edition = " 2018"
Original file line number Diff line number Diff line change 144
144
//! Turn on an LED for one second and *then* loops back serial data.
145
145
//!
146
146
//! ```
147
+ //! use core::convert::Infallible;
147
148
//! use nb::block;
148
149
//!
149
150
//! use hal::{Led, Serial, Timer};
150
151
//!
152
+ //! # fn main() -> Result<(), Infallible> {
151
153
//! // Turn the LED on for one second
152
154
//! Led.on();
153
- //! block!(Timer.wait()).unwrap(); // NOTE(unwrap) E = Infallible
155
+ //! block!(Timer.wait())?;
154
156
//! Led.off();
155
157
//!
156
158
//! // Serial interface loopback
157
- //! # return;
159
+ //! # return Ok(()) ;
158
160
//! loop {
159
- //! let byte = block!(Serial.read()).unwrap() ;
160
- //! block!(Serial.write(byte)).unwrap() ;
161
+ //! let byte = block!(Serial.read())? ;
162
+ //! block!(Serial.write(byte))? ;
161
163
//! }
164
+ //! # }
162
165
//!
163
166
//! # mod hal {
164
167
//! # use nb;
170
173
//! # }
171
174
//! # pub struct Serial;
172
175
//! # impl Serial {
173
- //! # pub fn read(&self) -> nb::Result<u8, () > { Ok(0) }
174
- //! # pub fn write(&self, _: u8) -> nb::Result<(), () > { Ok(()) }
176
+ //! # pub fn read(&self) -> nb::Result<u8, Infallible > { Ok(0) }
177
+ //! # pub fn write(&self, _: u8) -> nb::Result<(), Infallible > { Ok(()) }
175
178
//! # }
176
179
//! # pub struct Timer;
177
180
//! # impl Timer {
181
184
//! ```
182
185
183
186
#![ no_std]
187
+ #![ doc( html_root_url = "https://docs.rs/nb/1.0.0" ) ]
184
188
185
189
use core:: fmt;
186
190
You can’t perform that action at this time.
0 commit comments