From 712c14ba627e767d275c13eb6e7ee0f1d8697689 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 5 May 2024 17:16:21 +0100 Subject: [PATCH 1/3] Updated workers dependency to 0.2.0. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index e8aa5e7..316e977 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ url = "2.3.1" base64 = "0.21.0" num-traits = "0.2.15" serde_json = "1.0.91" -worker = { version = "0.0.18", optional = true } +worker = { version = "0.2.0", optional = true } spin-sdk = { version = "2.1", default-features = false, features = [ "http", "json", From a94b819c4b87c140fd4d84e7bae1a8127d4f7241 Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 5 May 2024 18:10:44 +0100 Subject: [PATCH 2/3] Improved README. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 8da5ed8..185d5d0 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,13 @@ router.get_async("/", |_, ctx| async move { .await?; (...) ``` + +Actually the latest version is a bit different: +```rust + #[allow(deprecated)] + // Uses secrets "LIBSQL_CLIENT_URL" and "LIBSQL_CLIENT_TOKEN" + let client = libsql_client::Client::from_workers_env(&env).unwrap(); + + #[allow(deprecated)] + client.execute("SELECT * FROM members").await.unwrap(); +``` From 1e1c32dee843533e00f349db1644c4824619729d Mon Sep 17 00:00:00 2001 From: Alexandre Faria Date: Sun, 5 May 2024 18:56:21 +0100 Subject: [PATCH 3/3] Minor improvement to README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 185d5d0..5027674 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ router.get_async("/", |_, ctx| async move { (...) ``` -Actually the latest version is a bit different: +The latest version from git is a bit different: ```rust #[allow(deprecated)] // Uses secrets "LIBSQL_CLIENT_URL" and "LIBSQL_CLIENT_TOKEN"