1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-08-28 11:36:17 +03:00

separate section to run a fuzzer in CONTRIBUTING.md

Этот коммит содержится в:
rhysd
2022-07-18 20:30:44 +09:00
родитель 75af9fa5ab
Коммит cd14cc10d6
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@@ -1,3 +1,3 @@
[alias]
watch-check = ["watch", "-x", "check --examples --all-features --all --benches"]
watch-check = ["watch", "-x", "check --examples --all-features --workspace --benches"]
watch-test = ["watch", "-x", "test --all-features -- --skip=src/lib.rs", "-w", "src"]

Просмотреть файл

@@ -33,15 +33,17 @@ cargo clippy --all-features --examples
cargo fmt -- --check
```
To run fuzzer:
If you use [cargo-watch][], `cargo watch-check` alias is useful to run checks automatically on writing to a file.
[cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz) is necessary.
## Running a fuzzer
To run fuzzing tests, [cargo-fuzz][] is necessary.
```sh
cargo +nightly fuzz run edit
```
## Run benchmark
## Running benchmark suites
Benchmarks are available using [Criterion.rs][criterion].
@@ -56,4 +58,6 @@ cargo bench --benches
See [README in bench/](./bench/README.md) for more details.
[cargo-watch]: https://crates.io/crates/cargo-watch
[cargo-fuzz]: https://github.com/rust-fuzz/cargo-fuzz
[criterion]: https://github.com/bheisler/criterion.rs