From d780391408b9e6d443e5e4f907748cae484b79fb Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 1 Feb 2025 22:42:11 +0100 Subject: Use workspace instead of features Having to include --feature=build-server in basically all commands that wasn't building eyeballs-githook got tiring quickly. Instead, use workspaces, with a separate project for building the githook. It means I also had to add a library common with code shared by both githook and server. --- server/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/src/main.rs') diff --git a/server/src/main.rs b/server/src/main.rs index 3d6d0e6..b2974ac 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -14,6 +14,10 @@ use std::path::PathBuf; use utoipa::OpenApi; use utoipa_swagger_ui::SwaggerUi; +use eyeballs_common::fs_utils; +use eyeballs_common::git; +use eyeballs_common::git_socket; + #[cfg(test)] mod tests; @@ -21,10 +25,7 @@ mod api_model; mod auth; mod authorized_keys; mod db_utils; -mod fs_utils; -mod git; mod git_root; -mod git_socket; use auth::AuthApiAddon; -- cgit v1.2.3-70-g09d2