From 358efc945696b8e2ff1d5f0f6a89e4938f58acbc Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Thu, 24 Jan 2019 10:49:40 -0500 Subject: [PATCH] README.md: syntax highlighting --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 707d00e..7733f2a 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ `serial_test` allows for the creation of serialised Rust tests using the `serial` attribute e.g. -```` +```rust #[test] #[serial] fn test_serial_one() { @@ -19,20 +19,20 @@ fn test_serial_one() { fn test_serial_another() { // Do things } -```` +``` Multiple tests with the `serial` attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however. ## Usage We require at least Rust 1.32 for [attribute-like procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros) support and [proc-macro2](https://github.com/alexcrichton/proc-macro2) being willing to build! Add to your Cargo.toml -``` +```toml [dev-dependencies] serial_test = "*" ``` plus `use serial_test::serial;` (for Rust 2018) or -``` +```rust #[macro_use] extern crate serial_test; ```