File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,18 @@ of SQLx.
203203
204204``` toml
205205[dependencies ]
206- sqlx = { version = " 0.4.1" , features = [ " postgres" ] }
207- async-std = { version = " 1.6" , features = [ " attributes" ] }
206+ # PICK ONE:
207+ # Async-std:
208+ sqlx = { version = " 0.5" , features = [ " runtime-async-std-native-tls" , " postgres" ] }
209+ async-std = { version = " 1" , features = [ " attributes" ] }
210+
211+ # Tokio:
212+ sqlx = { version = " 0.5" , features = [ " runtime-tokio-native-tls" , " postgres" ] }
213+ tokio = { version = " 1" , features = [" full" ] }
214+
215+ # Actix-web:
216+ sqlx = { version = " 0.5" , features = [ " runtime-actix-native-tls" , " postgres" ] }
217+ actix-web = " 3"
208218```
209219
210220``` rust
@@ -214,6 +224,7 @@ use sqlx::postgres::PgPoolOptions;
214224
215225#[async_std:: main]
216226// or #[tokio::main]
227+ // or #[actix_web::main]
217228async fn main () -> Result <(), sqlx :: Error > {
218229 // Create a connection pool
219230 // for MySQL, use MySqlPoolOptions::new()
You can’t perform that action at this time.
0 commit comments