tower-http-cache-plus 0.0.2

HTTP response caching middleware with integrated compression
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e

HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
. "$HERE/_env"
. "$HERE/_start-http-server" "$ROOT/assets"

cd "$ROOT"

if [ "$1" = -n ]; then
    NIGHTLY=+nightly
    export RUSTFLAGS='-Z threads=8 --codegen linker=clang --codegen link-arg=--ld-path=wild'
fi

for E in $(cargo run --example 2>&1 | grep --extended-regexp '^    ' | sort); do
    m "\nexample: $E\n" "$RED"
	cargo $NIGHTLY run --quiet --example "$E" --features=blocking,async
done