Skip to content

Commit a8f71b8

Browse files
committed
MSRV now 1.39 for async/await
1 parent a3bd302 commit a8f71b8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: rust
22

33
rust:
4-
- 1.36.0
4+
- 1.39.0
55
- stable
66
- beta
77
- nightly

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Docs](https://docs.rs/serial_test/badge.svg)](https://docs.rs/serial_test/)
55
[![MIT license](https://img.shields.io/crates/l/serial_test.svg)](./LICENSE)
66
[![Build Status](https://travis-ci.com/palfrey/serial_test.svg?branch=master)](https://travis-ci.com/palfrey/serial_test)
7-
[![MSRV: 1.36.0](https://flat.badgen.net/badge/MSRV/1.36.0/purple)](https://blog.rust-lang.org/2019/07/04/Rust-1.36.0.html)
7+
[![MSRV: 1.39.0](https://flat.badgen.net/badge/MSRV/1.39.0/purple)](https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html)
88

99
`serial_test` allows for the creation of serialised Rust tests using the `serial` attribute
1010
e.g.
@@ -20,11 +20,17 @@ fn test_serial_one() {
2020
fn test_serial_another() {
2121
// Do things
2222
}
23+
24+
#[test]
25+
#[serial]
26+
async fn test_serial_another() {
27+
// Do things asynchronously
28+
}
2329
```
2430
Multiple tests with the `serial` attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however.
2531

2632
## Usage
27-
We require at least Rust 1.36 for [attribute-like procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros) support (and [parking_lot using smallvec 1.0](https://github.com/Amanieu/parking_lot/pull/188))
33+
We require at least Rust 1.39 for [async/await](https://blog.rust-lang.org/2019/11/07/Async-await-stable.html) support
2834

2935
Add to your Cargo.toml
3036
```toml

0 commit comments

Comments
 (0)