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/hook/Cargo.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 server/hook/Cargo.toml (limited to 'server/hook/Cargo.toml') diff --git a/server/hook/Cargo.toml b/server/hook/Cargo.toml new file mode 100644 index 0000000..2a298b7 --- /dev/null +++ b/server/hook/Cargo.toml @@ -0,0 +1,14 @@ +[package] +name = "eyeballs-githook" +version = "0.1.0" +edition = "2021" + +[dependencies] +eyeballs-common = { path = "../common" } +rmp-serde.workspace = true +serde.workspace = true +tokio = { workspace = true, features = ["full"] } + +[[bin]] +name = "eyeballs-githook" +path = "src/githook.rs" -- cgit v1.2.3-70-g09d2