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", diff --git a/README.md b/README.md index 8da5ed8..5027674 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,13 @@ router.get_async("/", |_, ctx| async move { .await?; (...) ``` + +The latest version from git 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(); +```