Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/atuin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ atuin = { path = "/usr/bin/atuin" }
default = ["client", "sync", "server", "clipboard", "check-update", "daemon"]
client = ["atuin-client"]
sync = ["atuin-client/sync"]
daemon = ["atuin-client/daemon"]
daemon = ["atuin-client/daemon", "atuin-daemon"]
server = ["atuin-server", "atuin-server-postgres"]
clipboard = ["arboard"]
check-update = ["atuin-client/check-update"]
Expand All @@ -48,7 +48,7 @@ atuin-client = { path = "../atuin-client", version = "18.4.0-beta.3", optional =
atuin-common = { path = "../atuin-common", version = "18.4.0-beta.3" }
atuin-dotfiles = { path = "../atuin-dotfiles", version = "18.4.0-beta.3" }
atuin-history = { path = "../atuin-history", version = "18.4.0-beta.3" }
atuin-daemon = { path = "../atuin-daemon", version = "18.4.0-beta.3" }
atuin-daemon = { path = "../atuin-daemon", version = "18.4.0-beta.3", optional = true, default-features = false }

log = { workspace = true }
env_logger = "0.11.2"
Expand Down
3 changes: 3 additions & 0 deletions crates/atuin/src/command/client/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ impl Cmd {
Ok(())
}

#[cfg(feature = "daemon")]
async fn handle_daemon_start(settings: &Settings, command: &[String]) -> Result<()> {
let command = command.join(" ");

Expand Down Expand Up @@ -425,6 +426,7 @@ impl Cmd {
Ok(())
}

#[cfg(feature = "daemon")]
#[allow(unused_variables)]
async fn handle_daemon_end(
settings: &Settings,
Expand Down Expand Up @@ -543,6 +545,7 @@ impl Cmd {
pub async fn run(self, settings: &Settings) -> Result<()> {
let context = current_context();

#[cfg(feature = "daemon")]
// Skip initializing any databases for start/end, if the daemon is enabled
if settings.daemon.enabled {
match self {
Expand Down