Skip to content

Commit 57cbfbd

Browse files
committed
Merge rust-bitcoin#67: Drop fuzz subcommand
be946c9 cargo-rbmt: remove fuzz subcommand (Nick Johnson) 58b1560 Add api docs to toc (Nick Johnson) Pull request description: As mentioned in rust-bitcoin#5 , I think it makes more sense to just use `cargo-fuzz` if we switch to the libfuzzer backend. ACKs for top commit: tcharding: ACK be946c9 Tree-SHA512: 2e4fe76f331d848359c336ad1d2cb50c92c19d8782fe79ead2004fec2dc200038170f489df1053125c7f8f2f2ec48899ccb7c469624ee29d3d897459ca74db98
2 parents cddf5e8 + be946c9 commit 57cbfbd

File tree

3 files changed

+4
-129
lines changed

3 files changed

+4
-129
lines changed

cargo-rbmt/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Maintainer tools for Rust-based projects in the Bitcoin domain. Built with [xshe
1111
- [Integration](#integration)
1212
- [Prerelease](#prerelease)
1313
- [Lock Files](#lock-files)
14+
- [API](#api)
1415
- [Workspace Integration](#workspace-integration)
1516
- [1. Install on system](#1-install-on-system)
1617
- [2. Add as a dev-dependency](#2-add-as-a-dev-dependency)
@@ -133,7 +134,7 @@ cargo rbmt --lock-file minimal docs
133134

134135
When you specify `--lock-file`, the tool copies that lock file to `Cargo.lock` before running the command. This allows you to test your code against different dependency version constraints.
135136

136-
## API Checking
137+
## API
137138

138139
The `api` command helps maintain API stability by generating public API snapshots and checking for breaking changes. It uses the [public-api](https://github.com/Enselic/cargo-public-api) crate to analyze a crate's public interface. **Requires running with a nightly toolchain after nightly-2025-08-02** due to docsrs dependencies.
139140

cargo-rbmt/src/fuzz.rs

Lines changed: 0 additions & 110 deletions
This file was deleted.

cargo-rbmt/src/main.rs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ mod api;
22
mod bench;
33
mod docs;
44
mod environment;
5-
mod fuzz;
65
mod integration;
76
mod lint;
87
mod lock;
@@ -57,12 +56,6 @@ enum Commands {
5756
},
5857
/// Run bitcoin core integration tests.
5958
Integration,
60-
/// Run fuzz tests.
61-
Fuzz {
62-
/// List available fuzz targets instead of running them.
63-
#[arg(long)]
64-
list: bool,
65-
},
6659
/// Update Cargo-minimal.lock and Cargo-recent.lock files.
6760
Lock,
6861
/// Run pre-release readiness checks.
@@ -83,8 +76,8 @@ fn main() {
8376
configure_log_level(&sh);
8477
change_to_repo_root(&sh);
8578

86-
// Restore the specified lock file before running any command (except Lock, Integration, and Fuzz).
87-
if !matches!(cli.command, Commands::Lock | Commands::Integration | Commands::Fuzz { .. }) {
79+
// Restore the specified lock file before running any command (except Lock and Integration).
80+
if !matches!(cli.command, Commands::Lock | Commands::Integration) {
8881
if let Err(e) = cli.lock_file.restore(&sh) {
8982
eprintln!("Error restoring lock file: {}", e);
9083
process::exit(1);
@@ -128,15 +121,6 @@ fn main() {
128121
eprintln!("Error running integration tests: {}", e);
129122
process::exit(1);
130123
},
131-
Commands::Fuzz { list } =>
132-
if list {
133-
if let Err(e) = fuzz::list(&sh) {
134-
eprintln!("Error listing fuzz targets: {}", e);
135-
process::exit(1);
136-
}
137-
} else {
138-
fuzz::run(&sh);
139-
},
140124
Commands::Lock =>
141125
if let Err(e) = lock::run(&sh) {
142126
eprintln!("Error updating lock files: {}", e);

0 commit comments

Comments
 (0)