From fdfbd0dcda28df03e608cdb58080f8424f3baffe Mon Sep 17 00:00:00 2001 From: snspinn <41950061+snspinn@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:42:31 +0100 Subject: [PATCH 1/3] Update README.md Quick helper on the async_std quickstart --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 7bc813418b..1f305cd0c9 100644 --- a/README.md +++ b/README.md @@ -254,6 +254,9 @@ async fn main() -> Result<(), sqlx::Error> { Ok(()) } ``` +☝️ Requires [`cargo add async-std --features attributes`] + +[`cargo add async-std --features attributes`]: https://docs.rs/async-std/latest/async_std/#features ### Connecting From 7f117907dc20c293ccaff9c70867b3a2c9e00424 Mon Sep 17 00:00:00 2001 From: snspinn <41950061+snspinn@users.noreply.github.com> Date: Tue, 26 Sep 2023 22:22:48 +0100 Subject: [PATCH 2/3] Move comment regard. `attributes` into code example --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 1f305cd0c9..cfc31bb0dc 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,7 @@ use sqlx::postgres::PgPoolOptions; // use sqlx::mysql::MySqlPoolOptions; // etc. -#[async_std::main] +#[async_std::main] // Requires the attributes feature // or #[tokio::main] // or #[actix_web::main] async fn main() -> Result<(), sqlx::Error> { @@ -254,9 +254,7 @@ async fn main() -> Result<(), sqlx::Error> { Ok(()) } ``` -☝️ Requires [`cargo add async-std --features attributes`] -[`cargo add async-std --features attributes`]: https://docs.rs/async-std/latest/async_std/#features ### Connecting From db19cad0efaac0a61ee4ecf498ea4a719ea8e428 Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Thu, 5 Oct 2023 14:41:14 -0700 Subject: [PATCH 3/3] doc(README): adjust wording of a comment --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfc31bb0dc..bf7ce35237 100644 --- a/README.md +++ b/README.md @@ -232,7 +232,7 @@ use sqlx::postgres::PgPoolOptions; // use sqlx::mysql::MySqlPoolOptions; // etc. -#[async_std::main] // Requires the attributes feature +#[async_std::main] // Requires the `attributes` feature of `async-std` // or #[tokio::main] // or #[actix_web::main] async fn main() -> Result<(), sqlx::Error> {