Unfortunately cargo doesn't allow optional dev dependencies (see
rust-lang/cargo#1596) so this is the workaround.
Previously, running `cargo test` triggered the build of all dev
dependencies, including criterion, which in turn pulls in a lot of
stuff. Running tests should be faster, hence this change.