Skip to content

Commit

Permalink
Update README on automatically include new files
Browse files Browse the repository at this point in the history
See discussion in dtolnay#22.
  • Loading branch information
jc4x4 authored Mar 28, 2024
1 parent 4ccac9a commit 7730559
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ mod issue2;
mod issue128;
```

To automatically include new test files, say in `cargo test`, you can modify
`build.rs` as follows. Otherwise, the macro will only be run once at compile
time and cached until a clean build.

```rust
fn main() {
println!("cargo:rerun-if-changed=tests/regression");
}
```

<br>

#### License
Expand Down

0 comments on commit 7730559

Please sign in to comment.