summaryrefslogtreecommitdiff
path: root/server/README
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-02-01 22:42:11 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-02-01 22:42:11 +0100
commitd780391408b9e6d443e5e4f907748cae484b79fb (patch)
treed961efd62478248081d1a327c818d6fa171f0a2d /server/README
parent05b674190f26e2a58cc7b7288586c031552d50f3 (diff)
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.
Diffstat (limited to 'server/README')
-rw-r--r--server/README7
1 files changed, 4 insertions, 3 deletions
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