{"id":13538931,"url":"https://github.com/rust-fuzz/cargo-fuzz","last_synced_at":"2025-05-13T00:07:46.223Z","repository":{"id":39310199,"uuid":"82634530","full_name":"rust-fuzz/cargo-fuzz","owner":"rust-fuzz","description":"Command line helpers for fuzzing","archived":false,"fork":false,"pushed_at":"2025-04-28T19:59:54.000Z","size":458,"stargazers_count":1623,"open_issues_count":106,"forks_count":117,"subscribers_count":24,"default_branch":"main","last_synced_at":"2025-05-13T00:07:37.654Z","etag":null,"topics":["cargo","fuzz-testing","fuzzing","rust"],"latest_commit_sha":null,"homepage":"https://rust-fuzz.github.io/book/cargo-fuzz.html","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-fuzz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-02-21T04:04:56.000Z","updated_at":"2025-05-11T01:30:52.000Z","dependencies_parsed_at":"2023-12-12T20:36:59.140Z","dependency_job_id":"2c9f320d-d2f3-46cf-b70c-df142e528f03","html_url":"https://github.com/rust-fuzz/cargo-fuzz","commit_stats":{"total_commits":328,"total_committers":64,"mean_commits":5.125,"dds":0.8262195121951219,"last_synced_commit":"fa18f0d77aef036302d9f948e80aa12c6b95d57b"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-fuzz%2Fcargo-fuzz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-fuzz%2Fcargo-fuzz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-fuzz%2Fcargo-fuzz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-fuzz%2Fcargo-fuzz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-fuzz","download_url":"https://codeload.github.com/rust-fuzz/cargo-fuzz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843215,"owners_count":21972873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","fuzz-testing","fuzzing","rust"],"created_at":"2024-08-01T09:01:17.836Z","updated_at":"2025-05-13T00:07:46.208Z","avatar_url":"https://github.com/rust-fuzz.png","language":"Rust","funding_links":[],"categories":["\u003ca id=\"683b645c2162a1fce5f24ac2abfa1973\"\u003e\u003c/a\u003e漏洞\u0026\u0026漏洞管理\u0026\u0026漏洞发现/挖掘\u0026\u0026漏洞开发\u0026\u0026漏洞利用\u0026\u0026Fuzzing","Rust","15. Security Testing in Rust","Dynamic Checkers","Fuzzing"],"sub_categories":["功能","15.1 Fuzz Testing","Rust tools"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\u003ccode\u003ecargo fuzz\u003c/code\u003e\u003c/h1\u003e\n\n  \u003cp\u003e\u003cb\u003eA \u003ccode\u003ecargo\u003c/code\u003e subcommand for fuzzing with \u003ccode\u003elibFuzzer\u003c/code\u003e! Easy to use!\u003c/b\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n## Installation\n\n```sh\n$ cargo install cargo-fuzz\n```\n\nNote: `libFuzzer` needs LLVM sanitizer support, so this only works on x86-64 and Aarch64,\nand only on Unix-like operating systems (not Windows). This also needs a nightly compiler since it uses some\n unstable command-line flags. You'll also need a C++ compiler with C++11 support.\n\n## Usage\n\n### `cargo fuzz init`\n\nInitialize a `cargo fuzz` project for your crate!\n\n### If your crate uses cargo workspaces, add `fuzz` directory to `workspace.members` in root `Cargo.toml`\n\n`fuzz` directory can be either a part of an existing workspace (default)\nor use an independent workspace. If latter is desired, you can use\n`cargo fuzz init --fuzzing-workspace=true`.\n\n### `cargo fuzz add \u003ctarget\u003e`\n\nCreate a new fuzzing target!\n\n### `cargo fuzz run \u003ctarget\u003e`\n\nRun a fuzzing target and find bugs!\n\n### `cargo fuzz fmt \u003ctarget\u003e \u003cinput\u003e`\n\nPrint the `std::fmt::Debug` output for a test case. Useful when your fuzz target\ntakes an `Arbitrary` input!\n\n### `cargo fuzz tmin \u003ctarget\u003e \u003cinput\u003e`\n\nFound a failing input? Minify it to the smallest input that causes that failure\nfor easier debugging!\n\n### `cargo fuzz cmin \u003ctarget\u003e`\n\nMinify your corpus of input files!\n\n### `cargo fuzz coverage \u003ctarget\u003e`\n\nGenerate coverage information on the fuzzed program!\n\n## Documentation\n\nDocumentation can be found in the [Rust Fuzz\nBook](https://rust-fuzz.github.io/book/cargo-fuzz.html).\n\nYou can also always find the full command-line options that are available with\n`--help`:\n\n```sh\n$ cargo fuzz --help\n```\n\n## Trophy case\n\n[The trophy case](https://github.com/rust-fuzz/trophy-case) has a list of bugs\nfound by `cargo fuzz` (and others). Did `cargo fuzz` and libFuzzer find a bug\nfor you? Add it to the trophy case!\n\n## License\n\n`cargo-fuzz` is distributed under the terms of both the MIT license and the\nApache License (Version 2.0).\n\nSee [LICENSE-APACHE](./LICENSE-APACHE) and [LICENSE-MIT](./LICENSE-MIT) for\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-fuzz%2Fcargo-fuzz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-fuzz%2Fcargo-fuzz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-fuzz%2Fcargo-fuzz/lists"}