mirror of
https://github.com/askama-rs/askama.git
synced 2025-09-29 14:03:59 +00:00

In [#131] I added a check that ensures that the section in `Cargo.toml` (and there values) are in a specific order. I invented the order quite randomly, in the order which I thought might be useful. This PR changes the order to be the same as in Cargo's reference about [The Manifest Format]. Also some missing softlinks were added. [#131]: <https://github.com/rinja-rs/rinja/pull/131> [The Manifest Format]: <https://doc.rust-lang.org/cargo/reference/manifest.html>
Rinja Fuzzing
First install cargo-fuzz
and rust-nightly (once):
cargo install cargo-fuzz
rustup install nightly
Then execute in this folder:
RUST_BACKTRACE=1 nice cargo +nightly fuzz run <fuzz_target>
fuzz_target
is one out of all
, filters
, html
or parser
.
The execution won't stop, but continue until you kill it with ctrl+c.
Or until it finds a panic.
If the execution found a panic, then a file with the input scenario is written, e.g.
fuzz/artifacts/parser/crash-b91ab…
.
To get more information about the failed scenario, run or debug this command with the given path:
cargo run -- <fuzz_target> fuzz/artifacts/parser/crash-b91ab…
Find more information about fuzzing here:
cargo fuzz help run
- https://rust-fuzz.github.io/book/cargo-fuzz.html