-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89e6d2b
commit 4f93f20
Showing
8 changed files
with
245 additions
and
243 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "blockfast" | ||
version = "0.1.0" | ||
version = "0.1.1" | ||
authors = ["Pierre Dubouilh <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,41 @@ | ||
build: | ||
build:: | ||
cargo build | ||
cargo clippy | ||
cargo fmt | ||
cargo clippy --all | ||
cargo fmt --all | ||
|
||
run: | ||
run:: | ||
touch /tmp/sshdtest | ||
touch /tmp/clftest | ||
cargo run -- -s=/tmp/sshdtest -c=/tmp/clftest | ||
|
||
watch: | ||
ci:: test | ||
cargo fmt --all -- --check | ||
cargo clippy -- -D warnings | ||
|
||
publish:: ci | ||
cargo publish | ||
|
||
watch:: | ||
ls src/*.rs | entr -rc -- make run | ||
|
||
test: | ||
test:: | ||
cargo test | ||
|
||
watch-test: | ||
watch-test:: | ||
ls src/*.rs | entr -rc -- make test | ||
|
||
release: | ||
release:: | ||
cargo build --target x86_64-unknown-linux-musl --release | ||
|
||
ci: test | ||
cargo fmt --all -- --check | ||
cargo clippy -- -D warnings | ||
hit-sshd:: | ||
echo "Sep 26 06:25:32 livecompute sshd[23254]: Invalid user neal from 9.124.36.195" >> /tmp/sshdtest | ||
|
||
ok-sshd:: | ||
echo "Sep 26 06:25:19 livecompute sshd[23246]: successful login 8.124.36.195 port 41883 ssh2" >> /tmp/sshdtest | ||
|
||
hit-clf:: | ||
echo "1.124.36.195 - p [25/Sep/2021:13:49:56 +0200] \"POST /some/rpc HTTP/2.0\" 401 923" >> /tmp/clftest | ||
|
||
ok-clf:: | ||
echo "2.124.36.195 - p [25/Sep/2021:13:49:56 +0200] \"POST /some/rpc HTTP/2.0\" 200 23012" >> /tmp/clftest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.