mirror of
https://github.com/pldubouilh/blockfast.git
synced 2026-08-27 20:36:34 -04:00
it's a perf boost, but we drastically reduce portability as it will drag a libipset and a libc dependency along.
29 lines
669 B
Makefile
29 lines
669 B
Makefile
build::
|
|
cargo build
|
|
cargo clippy
|
|
cargo fmt
|
|
|
|
run:: build
|
|
sudo target/debug/blockfast -s=/tmp/sshdtest -c=/tmp/clftest
|
|
|
|
watch::
|
|
ls src/*.rs | entr -rc -- make run
|
|
|
|
test::
|
|
cargo test
|
|
|
|
watch-test::
|
|
ls src/*.rs | entr -rc -- make test
|
|
|
|
release::
|
|
cargo build --target x86_64-unknown-linux-musl --release
|
|
|
|
ci:: test
|
|
cargo fmt --all -- --check
|
|
cargo clippy -- -D warnings
|
|
|
|
hit-sshd-bad::
|
|
echo "Sep 26 06:26:14 livecompute sshd[23292]: pam_unix(sshd:auth): authentication failure; logname= u =0 tty=ssh ruser= rhost=5.101.107.191" >> /tmp/sshdtest
|
|
|
|
hit-clftest-bad::
|
|
echo "8.8.8.8 - p [25/Sep/2021:13:49:56 +0200] \"POST /some/rpc HTTP/2.0\" 200 923" >> /tmp/clftest
|