From 9c3deefd40135a4127632fb37e6b61a10949ea9f Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 2 Mar 2022 23:33:21 +0300 Subject: update dev script to use systemfd and cargo-watch --- dev.sh | 2 +- flake.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev.sh b/dev.sh index 682bf3d..6a580f4 100755 --- a/dev.sh +++ b/dev.sh @@ -6,4 +6,4 @@ export AUTHORIZATION_ENDPOINT=https://indieauth.com/auth export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz #export COOKIE_SECRET_FILE=/dev/null -exec cargo run --bin kittybox +exec systemfd --no-pid -s http::8080 -- cargo watch -x run diff --git a/flake.nix b/flake.nix index c1827cd..2e1966b 100644 --- a/flake.nix +++ b/flake.nix @@ -262,8 +262,9 @@ name = "rust-dev-shell"; nativeBuildInputs = with pkgs; [ pkg-config lld - # required for httpmock, not actually used + # required for httpmock, not actually used in the release openssl.dev + httpie systemfd cargo-watch (rust-bin.default.override { extensions = [ "rust-src" ]; }) (rust-analyzer.override { rustPlatform = with rust-bin; { rustLibSrc = rust-src; }; }) ]; -- cgit 1.4.1