Fix passing -O1 to build from `cargo test` 2020-10-opt-test
authorMatt Corallo <git@bluematt.me>
Mon, 5 Oct 2020 16:47:08 +0000 (12:47 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 5 Oct 2020 18:24:41 +0000 (14:24 -0400)
commite808d50b9d04f9cfde5e9fd9989964be31755c5d
tree77e8e7d1a5193ba3cc262efa3e93f3f47733a2eb
parent856648614e6d995f1bce5bcccd4b23ee8d50bcae
Fix passing -O1 to build from `cargo test`

In 9e03087d6acbc876a5ad1c9b9d8746bf18d5ca86 we started setting
`opt-level` only on profile.test and not profile.dev. When that
commit was authored I tested only that rustc was being called with
opt-level set in its flags, not that the resulted run ran at the
speed I expected. It seems profile.test isn't applied properly to
dependencies or so, resulting in tests running much slower than
they do at profile.dev.opt-level=1.
Cargo.toml