From 7436e4ff651b64d4019a59d04c30c414ae220403 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Fri, 22 Apr 2022 21:14:23 +0100 Subject: feature-flags (#328) * use feature flags * fmt * fix features * update ci * fmt Co-authored-by: Ellie Huxtable --- src/command/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/command/mod.rs') diff --git a/src/command/mod.rs b/src/command/mod.rs index 3a3ed393..953b76ba 100644 --- a/src/command/mod.rs +++ b/src/command/mod.rs @@ -2,6 +2,8 @@ use clap::Subcommand; use eyre::Result; mod client; + +#[cfg(feature = "server")] mod server; #[derive(Subcommand)] @@ -11,6 +13,7 @@ pub enum AtuinCmd { Client(client::Cmd), /// Start an atuin server + #[cfg(feature = "server")] #[clap(subcommand)] Server(server::Cmd), } @@ -19,6 +22,7 @@ impl AtuinCmd { pub async fn run(self) -> Result<()> { match self { Self::Client(client) => client.run().await, + #[cfg(feature = "server")] Self::Server(server) => server.run().await, } } -- cgit v1.3.1