From 97e24d0d41bb743833e457de5ba49c5c233eb3b3 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 14 Jul 2023 20:44:08 +0100 Subject: Add new sync (#1093) * Add record migration * Add database functions for inserting history No real tests yet :( I would like to avoid running postgres lol * Add index handler, use UUIDs not strings * Fix a bunch of tests, remove Option * Add tests, all passing * Working upload sync * Record downloading works * Sync download works * Don't waste requests * Use a page size for uploads, make it variable later * Aaaaaand they're encrypted now too * Add cek * Allow reading tail across hosts * Revert "Allow reading tail across hosts" Not like that This reverts commit 7b0c72e7e050c358172f9b53cbd21b9e44cf4931. * Handle multiple shards properly * format * Format and make clippy happy * use some fancy types (#1098) * use some fancy types * fmt * Goodbye horrible tuple * Update atuin-server-postgres/migrations/20230623070418_records.sql Co-authored-by: Conrad Ludgate * fmt * Sort tests too because time sucks * fix features --------- Co-authored-by: Conrad Ludgate --- Cargo.toml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index bde7ed67..017aa7e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [workspace] members = [ - "atuin", - "atuin-client", - "atuin-server", - "atuin-server-postgres", - "atuin-server-database", - "atuin-common", + "atuin", + "atuin-client", + "atuin-server", + "atuin-server-postgres", + "atuin-server-database", + "atuin-common", ] [workspace.package] @@ -35,9 +35,10 @@ semver = "1.0.14" serde = { version = "1.0.145", features = ["derive"] } serde_json = "1.0.86" tokio = { version = "1", features = ["full"] } -uuid = { version = "1.3", features = ["v4"] } +uuid = { version = "1.3", features = ["v4", "serde"] } whoami = "1.1.2" typed-builder = "0.14.0" +pretty_assertions = "1.3.0" [workspace.dependencies.reqwest] version = "0.11" @@ -46,4 +47,4 @@ default-features = false [workspace.dependencies.sqlx] version = "0.6" -features = ["runtime-tokio-rustls", "chrono", "postgres"] +features = ["runtime-tokio-rustls", "chrono", "postgres", "uuid"] -- cgit v1.3.1