about summary refs log tree commit diff
path: root/kittybox-rs/dev.sh
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-07-07 00:32:33 +0300
committerVika <vika@fireburn.ru>2022-07-07 00:36:39 +0300
commit7f23ec84bc05c236c1bf40c2f0d72412af711516 (patch)
treef0ba64804fffce29a8f04e5b6c76f9863de81dd2 /kittybox-rs/dev.sh
parent5cfac54aa4fb3c207ea2cbbeccd4571fa204a09b (diff)
treewide: rewrite using Axum
Axum has streaming bodies and allows to write simpler code. It also
helps enforce stronger types and looks much more neat.

This allows me to progress on the media endpoint and add streaming
reads and writes to the MediaStore trait.

Metrics are temporarily not implemented. Everything else was
preserved, and the tests still pass, after adjusting for new calling
conventions.

TODO: create method routers for protocol endpoints
Diffstat (limited to 'kittybox-rs/dev.sh')
-rwxr-xr-xkittybox-rs/dev.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/kittybox-rs/dev.sh b/kittybox-rs/dev.sh
index fa39dcc..b720e5e 100755
--- a/kittybox-rs/dev.sh
+++ b/kittybox-rs/dev.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
-export RUST_LOG="info,kittybox=debug,retainer::cache=warn,h2=warn,rustls=warn"
+export RUST_LOG="kittybox=debug,retainer::cache=warn,h2=info,rustls=info,tokio=info,tower_http::trace=debug"
 export BACKEND_URI=file://./test-dir
 export TOKEN_ENDPOINT=https://tokens.indieauth.com/token
 export AUTHORIZATION_ENDPOINT=https://indieauth.com/auth
@@ -7,7 +7,11 @@ export COOKIE_SECRET=1234567890abcdefghijklmnopqrstuvwxyz
 #export COOKIE_SECRET_FILE=/dev/null
 if [[ "$1" == "watch" ]]; then
 	shift
-	exec systemfd --no-pid -s http::8080 -- cargo watch -x run "$@"
+	exec systemfd --no-pid -s http::8080 -- cargo watch \
+         --ignore '.direnv' \
+         --ignore '*~' \
+         -x run \
+         "$@"
 elif [[ "$1" == "run" ]]; then
 	shift 1
 	exec cargo run "$@"