From 5751463942cc91f1f1ffaf6e2ac633d7a0085f25 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Tue, 13 Apr 2021 19:14:07 +0100 Subject: Add history sync, resolves #13 (#31) * Add encryption * Add login and register command * Add count endpoint * Write initial sync push * Add single sync command Confirmed working for one client only * Automatically sync on a configurable frequency * Add key command, key arg to login * Only load session if it exists * Use sync and history timestamps for download * Bind other key code Seems like some systems have this code for up arrow? I'm not sure why, and it's not an easy one to google. * Simplify upload * Try and fix download sync loop * Change sync order to avoid uploading what we just downloaded * Multiline import fix * Fix time parsing * Fix importing history with no time * Add hostname to sync * Use hostname to filter sync * Fixes * Add binding * Stuff from yesterday * Set cursor modes * Make clippy happy * Bump version --- Cargo.toml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index a016024aa..9d3378787 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "atuin" -version = "0.4.0" +version = "0.5.0" authors = ["Ellie Huxtable "] edition = "2018" license = "MIT" @@ -9,20 +9,22 @@ description = "atuin - magical shell history" [dependencies] log = "0.4" fern = "0.6.0" -chrono = "0.4" +chrono = { version = "0.4", features = ["serde"] } eyre = "0.6" shellexpand = "2" structopt = "0.3" directories = "3" uuid = { version = "0.8", features = ["v4"] } indicatif = "0.15.0" -hostname = "0.3.1" +whoami = "1.1.2" rocket = "0.4.7" chrono-english = "0.1.4" cli-table = "0.4" config = "0.11" serde_derive = "1.0.125" serde = "1.0.125" +serde_json = "1.0.64" +rmp-serde = "0.15.4" tui = "0.14" termion = "1.5" unicode-width = "0.1" @@ -31,6 +33,12 @@ diesel = { version = "1.4.4", features = ["postgres", "chrono"] } diesel_migrations = "1.4.0" dotenv = "0.15.0" sodiumoxide = "0.2.6" +reqwest = { version = "0.11", features = ["blocking", "json"] } +base64 = "0.13.0" +fork = "0.1.18" +parse_duration = "2.1.1" +rand = "0.8.3" +rust-crypto = "^0.2" [dependencies.rusqlite] version = "0.25" -- cgit v1.2.3