From 3d82cc139ebdf4521844d1d78434b1766793e3f9 Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Thu, 23 Apr 2026 16:37:55 -0400 Subject: [PATCH] Deprecate Client::sync() with #[deprecated] attribute Users are directed to the `turso` crate as a replacement. Learn more: https://tur.so/newsync Co-Authored-By: Claude Opus 4.6 --- src/local.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/local.rs b/src/local.rs index 7298c5a..9457d58 100644 --- a/src/local.rs +++ b/src/local.rs @@ -73,6 +73,7 @@ impl Client { Self::new(path) } + #[deprecated(note = "sync() is deprecated and will be removed in a future release. Use the `turso` crate instead. Learn more: https://tur.so/newsync")] pub async fn sync(&self) -> anyhow::Result { self.db.sync().await.map_err(|e| anyhow::anyhow!("{}", e)) }