meli/DEVELOPMENT.md

679 B

Development

use .git-blame-ignore-revs file optional

Use this file to ignore formatting commits from git-blame. It needs to be set up per project because git-blame will fail if it's missing.

git config blame.ignoreRevsFile .git-blame-ignore-revs

Testing

How to run specific tests:

cargo test -p {melib, meli} (-- --nocapture) (--test test_name)

Profiling

perf record -g target/debug/bin
perf script | stackcollapse-perf | rust-unmangle | flamegraph > perf.svg

Running fuzz targets

Note: cargo-fuzz requires the nightly toolchain.

cargo +nightly fuzz run envelope_parse -- -dict=fuzz/envelope_tokens.dict