From b6579318ceac063b6ce77c8f88a3e76f5f8e3531 Mon Sep 17 00:00:00 2001 From: cstef Date: Mon, 8 Jul 2024 18:21:42 +0200 Subject: [PATCH] chore: switch to `braise` for task running --- .justfile | 20 -------------------- braise.toml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 20 deletions(-) delete mode 100644 .justfile create mode 100644 braise.toml diff --git a/.justfile b/.justfile deleted file mode 100644 index 8188c75..0000000 --- a/.justfile +++ /dev/null @@ -1,20 +0,0 @@ -default: - just -l -# Run the program -@run *ARGS="": - cargo run --quiet -- {{ARGS}} - -test: - cargo nextest run - -# Build the program -build OUTPUT="./target/release": - cargo build --release -Z unstable-options --quiet --out-dir {{OUTPUT}} - -# Run the benchmarks against ffuf and dirsearch -bench URL="http://ffuf.me/cd/basic" FILE="common.txt" THREADS="100": - hyperfine "rwalk {{URL}} {{FILE}} -t {{THREADS}}" "ffuf -u {{URL}}/FUZZ -w {{FILE}} -t {{THREADS}}" "dirsearch -u {{URL}} -w {{FILE}} -t {{THREADS}}" - -gif COMMAND="rwalk http://ffuf.me/cd/recursion/ ~/common.txt -d 3": - asciinema rec assets/rwalk.cast --overwrite -c "{{COMMAND}}" --cols 85 --rows 21 - agg assets/rwalk.cast assets/rwalk.gif --font-family "MesloLGS NF,Apple Symbols" --theme github-dark \ No newline at end of file diff --git a/braise.toml b/braise.toml new file mode 100644 index 0000000..411bd7c --- /dev/null +++ b/braise.toml @@ -0,0 +1,13 @@ +#:schema https://raw.githubusercontent.com/cestef/braise/main/schema/braise.schema.json + +[run] +command = "cargo run --quiet --" +description = "Run the program" + +[bench] +command = "hyperfine \"rwalk {env(URL:http://ffuf.me/cd/basic)} {env(FILE:common.txt)} -t {env(THREADS:100)}\" \"ffuf -u {env(URL:http://ffuf.me/cd/basic)/FUZZ} -w {env(FILE:common.txt)} -t {env(THREADS:100)}\" \"dirsearch -u {env(URL:http://ffuf.me/cd/basic)} -w {env(FILE:common.txt)} -t {env(THREADS:100)}\"" +description = "Run the benchmarks against ffuf and dirsearch" + +[test] +command = "cargo nextest run" +description = ""