Skip to content

Commit

Permalink
Merge pull request #161 from orium/readme-stable
Browse files Browse the repository at this point in the history
Add instructions to README on how to use compiletest on rust stable
  • Loading branch information
Thomas Bracht Laumann Jespersen authored Mar 11, 2019
2 parents e2cd645 + 32233f0 commit e2056b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ To use `compiletest-rs` in your application, add the following to `Cargo.toml`
compiletest_rs = "*"
```

This will require you to use rust nightly. If you want to use rust stable
set the feature `stable`:

```toml
[dev-dependencies]
compiletest_rs = { version = "*", features = [ "stable" ] }
```

Create a `tests` folder in the root folder of your project. Create a test file
with something like the following:

Expand Down

0 comments on commit e2056b1

Please sign in to comment.