Skip to content

Commit

Permalink
Merge pull request #1801 from tursodatabase/push-sync
Browse files Browse the repository at this point in the history
Initial offline write support
  • Loading branch information
penberg authored Nov 14, 2024
2 parents bf0a3bb + 4e5ca0f commit cc1d9c5
Show file tree
Hide file tree
Showing 11 changed files with 577 additions and 47 deletions.
207 changes: 200 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion libsql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ fallible-iterator = { version = "0.3", optional = true }

libsql_replication = { version = "0.6", path = "../libsql-replication", optional = true }
async-stream = { version = "0.3.5", optional = true }
reqwest = { version = "0.12.9", default-features = false, features = [ "rustls-tls" ], optional = true }

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports", "async", "async_futures", "async_tokio"] }
Expand All @@ -53,7 +54,7 @@ tempfile = { version = "3.7.0" }
rand = "0.8.5"

[features]
default = ["core", "replication", "remote", "tls"]
default = ["core", "replication", "remote", "sync", "tls"]
core = [
"libsql-sys",
"dep:bitflags",
Expand Down Expand Up @@ -91,6 +92,21 @@ replication = [
"dep:futures",
"dep:libsql_replication",
]
sync = [
"core",
"parser",
"serde",
"stream",
"dep:tower",
"dep:hyper",
"dep:http",
"dep:tokio",
"dep:zerocopy",
"dep:bytes",
"dep:tokio",
"dep:futures",
"dep:reqwest",
]
hrana = [
"parser",
"serde",
Expand Down
Loading

0 comments on commit cc1d9c5

Please sign in to comment.