зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-08 16:35:49 +03:00
separate section to run a fuzzer in CONTRIBUTING.md
Этот коммит содержится в:
@@ -1,3 +1,3 @@
|
|||||||
[alias]
|
[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"]
|
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
|
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
|
```sh
|
||||||
cargo +nightly fuzz run edit
|
cargo +nightly fuzz run edit
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run benchmark
|
## Running benchmark suites
|
||||||
|
|
||||||
Benchmarks are available using [Criterion.rs][criterion].
|
Benchmarks are available using [Criterion.rs][criterion].
|
||||||
|
|
||||||
@@ -56,4 +58,6 @@ cargo bench --benches
|
|||||||
|
|
||||||
See [README in bench/](./bench/README.md) for more details.
|
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
|
[criterion]: https://github.com/bheisler/criterion.rs
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user