sqlx-data.json removal prep work (#1184)

* macros: Reduce I/O

by doing all .env and environment variable reading inside a Lazy initializer.

* Use the default runtime and TLS backend for all examples

Before, rust-analyzer was always hitting the
"only one runtime can be enabled" compile_error in sqlx-rt.
This commit is contained in:
Jonas Platte
2021-05-22 02:33:56 +02:00
committed by GitHub
parent 13f7c7124a
commit 901f858fbc
3 changed files with 88 additions and 54 deletions

View File

@@ -9,5 +9,5 @@ anyhow = "1.0"
async-std = { version = "1.8.0", features = [ "attributes" ] }
futures = "0.3"
paw = "1.0"
sqlx = { path = "../../../", features = [ "mysql", "runtime-async-std-rustls" ] }
sqlx = { path = "../../../", features = [ "mysql", "runtime-async-std-native-tls" ] }
structopt = { version = "0.3", features = [ "paw" ] }