Rename cargo features in preparation for rustls support

This commit is contained in:
Jonas Platte
2020-10-20 12:29:24 +02:00
committed by Ryan Leckey
parent 04f68632b4
commit a161bcba05
23 changed files with 203 additions and 164 deletions

View File

@@ -6,9 +6,9 @@ edition = "2018"
publish = false
[features]
runtime-actix = ["sqlx/runtime-actix", "sqlx-rt/runtime-actix"]
runtime-async-std = ["sqlx/runtime-async-std", "sqlx-rt/runtime-async-std"]
runtime-tokio = ["sqlx/runtime-tokio", "sqlx-rt/runtime-tokio"]
runtime-actix-native-tls = [ "sqlx/runtime-actix-native-tls", "sqlx-rt/runtime-actix-native-tls" ]
runtime-async-std-native-tls = [ "sqlx/runtime-async-std-native-tls", "sqlx-rt/runtime-async-std-native-tls" ]
runtime-tokio-native-tls = [ "sqlx/runtime-tokio-native-tls", "sqlx-rt/runtime-tokio-native-tls" ]
postgres = ["sqlx/postgres"]

View File

@@ -23,8 +23,8 @@ This Cargo project implements various benchmarks for SQLx using
You must choose a runtime to execute the benchmarks on; the feature flags are the same as the `sqlx` crate:
```bash
cargo bench --features runtime-tokio
cargo bench --features runtime-async-std
cargo bench --features runtime-tokio-native-tls
cargo bench --features runtime-async-std-native-tls
```
When complete, the benchmark results will be in `target/criterion/`.