Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Apr 22, 2022
1 parent 3c23acd commit 157dae1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions atuin-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ repository = "https://github.com/ellie/atuin"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["sync"]
sync = ["urlencoding", "sodiumoxide", "reqwest"]

[dependencies]
atuin-common = { path = "../atuin-common", version = "0.8.1" }

Expand All @@ -33,7 +37,6 @@ async-trait = "0.1.49"
itertools = "0.10.3"
shellexpand = "2"
sqlx = { version = "0.5", features = [
"runtime-tokio-rustls",
"uuid",
"chrono",
"sqlite",
Expand All @@ -48,7 +51,3 @@ reqwest = { version = "0.11", features = [
"json",
"rustls-tls",
], default-features = false, optional = true }

[features]
default = []
sync = ["urlencoding", "sodiumoxide", "reqwest"]
4 changes: 2 additions & 2 deletions atuin-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ extern crate log;
#[cfg(feature = "sync")]
pub mod api_client;
#[cfg(feature = "sync")]
pub mod sync;
#[cfg(feature = "sync")]
pub mod encryption;
#[cfg(feature = "sync")]
pub mod sync;

pub mod database;
pub mod history;
Expand Down
1 change: 0 additions & 1 deletion src/command/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ pub enum Cmd {
/// Interactive history search
Search(search::Cmd),


/// Generate shell completions
GenCompletions {
/// Set the shell for generating completions
Expand Down
3 changes: 2 additions & 1 deletion src/command/client/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ impl Cmd {
db.update(&h).await?;

if settings.should_sync()? {
#[cfg(feature = "sync")] {
#[cfg(feature = "sync")]
{
debug!("running periodic background sync");
sync::sync(settings, false, db).await?;
}
Expand Down

0 comments on commit 157dae1

Please sign in to comment.