Skip to content

Commit

Permalink
Fix client-only builds (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed Aug 7, 2023
1 parent 0d5332a commit 613218f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
13 changes: 3 additions & 10 deletions atuin-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ repository = { workspace = true }

[features]
default = ["sync"]
sync = [
"urlencoding",
"reqwest",
"sha2",
"hex",
"generic-array",
"xsalsa20poly1305",
]
sync = ["urlencoding", "reqwest", "sha2", "hex"]

[dependencies]
atuin-common = { path = "../atuin-common", version = "16.0.0" }
Expand Down Expand Up @@ -55,6 +48,8 @@ typed-builder = "0.14.0"
tokio = { workspace = true }
semver = { workspace = true }
futures = "0.3"
xsalsa20poly1305 = "0.9.0"
generic-array = { version = "0.14", features = ["serde"] }

# encryption
rusty_paseto = { version = "0.5.0", default-features = false }
Expand All @@ -68,8 +63,6 @@ urlencoding = { version = "2.1.0", optional = true }
reqwest = { workspace = true, optional = true }
hex = { version = "0.4", optional = true }
sha2 = { version = "0.10", optional = true }
xsalsa20poly1305 = { version = "0.9.0", optional = true }
generic-array = { version = "0.14", optional = true, features = ["serde"] }

[dev-dependencies]
tokio = { version = "1", features = ["full"] }
Expand Down
3 changes: 1 addition & 2 deletions atuin-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ extern crate log;
#[cfg(feature = "sync")]
pub mod api_client;
#[cfg(feature = "sync")]
pub mod encryption;
#[cfg(feature = "sync")]
pub mod sync;

pub mod database;
pub mod encryption;
pub mod history;
pub mod import;
pub mod kv;
Expand Down

1 comment on commit 613218f

@vercel
Copy link

@vercel vercel bot commented on 613218f Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

atuin-docs – ./

atuin-docs-git-main-atuin.vercel.app
atuin-docs-atuin.vercel.app
atuin-docs.vercel.app

Please sign in to comment.