Skip to content

Commit a9049f5

Browse files
committed
Merge rust-bitcoin/rust-bitcoin-maintainer-tools#108: cargo-rbmt: disable api by default
f640aab cargo-rbmt: disable api by default (Nick Johnson) Pull request description: Feedback from rust-bitcoin/rust-psbt#82, I think API checking should be an opt-in thing. ACKs for top commit: tcharding: ACK f640aab Tree-SHA512: c8d0ae44578ae28925f30e148266122e7fe957c1fb901e7598318052179c80f469b6a93eb6ee0057b5da02193dd281aea6389f40db5f5b7a646bd687f84c64fd
2 parents 78cffbe + f640aab commit a9049f5

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

cargo-rbmt/src/api.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,15 @@ const RUSTDOCFLAGS_ALLOW_BROKEN_LINKS: &str = "-A rustdoc::broken_intra_doc_link
2323
type PackageApis = HashMap<FeatureConfig, public_api::PublicApi>;
2424

2525
/// API-specific configuration, read from `[package.metadata.rbmt.api]` in `Cargo.toml`.
26-
#[derive(Debug, serde::Deserialize)]
26+
#[derive(Debug, Default, serde::Deserialize)]
2727
#[serde(default)]
2828
struct ApiConfig {
29-
/// Whether to run API checks for this package. Defaults to `true`.
29+
/// Whether to run API checks for this package. Defaults to `false`.
3030
enabled: bool,
3131
/// Feature combinations to test (in addition to no-features and all-features).
3232
features: Vec<Vec<String>>,
3333
}
3434

35-
impl Default for ApiConfig {
36-
fn default() -> Self { Self { enabled: true, features: Vec::new() } }
37-
}
38-
3935
impl ApiConfig {
4036
/// Load API configuration from `[package.metadata.rbmt.api]` in the package's `Cargo.toml`.
4137
fn load(package_dir: &Path) -> Result<Self, Box<dyn std::error::Error>> {

0 commit comments

Comments
 (0)