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/README | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/README') diff --git a/server/README b/server/README index e0ecaf9..4e97d2e 100644 --- a/server/README +++ b/server/README @@ -4,7 +4,8 @@ Development setup Start git, ldap and mariadb in docker/dev using docker compose up or simular. You might have to create docker/git/authorized_keys to be able to mount it. -Then compile, and because rust hasn't figured out how to do dependencies per -artifact, you have to do this: -cargo build --target=x86_64-unknown-linux-musl --bin eyeballs-githook && cargo build --features="build-server" && cargo run --features="build-server" +Then compile, using this to get musl based binaries for the githook: +cargo --target=x86_64-unknown-linux-musl --package eyeballs-githook build +and then: +cargo build && cargo run -- cgit v1.2.3-70-g09d2