Skip to content

Commit 35c5e32

Browse files
authored
fix(readme): show runtime features in quickstart
closes #1492
1 parent 51954fe commit 35c5e32

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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]
217228
async fn main() -> Result<(), sqlx::Error> {
218229
// Create a connection pool
219230
// for MySQL, use MySqlPoolOptions::new()

0 commit comments

Comments
 (0)