Ignore benchmarks when using stable/beta

前端 未结 3 1510
被撕碎了的回忆
被撕碎了的回忆 2021-02-20 14:06

I have a file with some benchmarks and tests and would like to test against stable, beta and nightly. However, either I don\'t use the benchmark or stable/beta complain. Is ther

3条回答
  •  梦毁少年i
    2021-02-20 14:43

    Cargo supports a benches directory for benchmark tests. If you put them in there, you can just never run "cargo bench" on beta/stable, and only run it on nightly.

提交回复
热议问题