test-fuzz 0.1.0-alpha.2

To make fuzzing Rust easy
docs.rs failed to build test-fuzz-0.1.0-alpha.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: test-fuzz-5.0.0

test-fuzz

Installation

$ cargo install test-fuzz --version 0.1.0-alpha.2

Usage

  1. Identify a fuzz target by:

    • Adding the following dependencies to tha target crate's Cargo.toml file:
      serde = "1.0"
      test-fuzz = "0.1.0-alpha.2"
      
    • Adding the following use declaration to target file or module:
      use test_fuzz::test_fuzz;
      
    • Preceding the target function with the test_fuzz attribute:
      #[test_fuzz]
      fn foo(...) {
          ...
      }
      
  2. Generate a corpus by runnig cargo test:

    $ cargo test
    
  3. Fuzz your target by runnig cargo test-fuzz:

    $ cargo test-fuzz --target foo
    

Features

test_fuzz

  • skip - TODO

  • rename = "name" - TODO

test_fuzz_impl

TODO

cargo test-fuzz options

  • -- <args>... - TODO

  • --list - TODO

  • --no-instrumentation - TODO

  • --resume - TODO

  • -p, --package = <package> - TODO

  • --target = <target> - TODO

Limitations

  • Global variables - TODO

  • Type parameters - TODO