Skip to content

Commit 2933630

Browse files
committed
always compile consistency check features, since we really use it now
1 parent 560d5f9 commit 2933630

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ exclude = [
1616
".rustwide-docker",
1717
]
1818

19-
[features]
20-
consistency_check = ["crates-index", "itertools"]
21-
2219
[dependencies]
2320
sentry = "0.34.0"
2421
sentry-panic = "0.34.0"
@@ -31,7 +28,7 @@ tracing-subscriber = { version = "0.3.16", default-features = false, features =
3128
tracing-log = "0.2.0"
3229
regex = "1"
3330
clap = { version = "4.0.22", features = [ "derive" ] }
34-
crates-index = { version = "3.0.0", default-features = false, features = ["git", "git-performance", "parallel"], optional = true }
31+
crates-index = { version = "3.0.0", default-features = false, features = ["git", "git-performance", "parallel"] }
3532
rayon = "1.6.1"
3633
num_cpus = "1.15.0"
3734
crates-index-diff = { version = "25.0.0", features = [ "max-performance" ]}
@@ -66,7 +63,7 @@ postgres-types = { version = "0.2", features = ["derive"] }
6663
zip = {version = "2.2.0", default-features = false, features = ["bzip2"]}
6764
bzip2 = "0.4.4"
6865
getrandom = "0.2.1"
69-
itertools = { version = "0.13.0", optional = true}
66+
itertools = { version = "0.13.0" }
7067
rusqlite = { version = "0.32.1", features = ["bundled"] }
7168
hex = "0.4.3"
7269

src/bin/cratesfyi.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ enum DatabaseSubcommand {
566566
},
567567

568568
/// Compares the database with the index and resolves inconsistencies
569-
#[cfg(feature = "consistency_check")]
570569
Synchronize {
571570
/// Don't actually resolve the inconsistencies, just log them
572571
#[arg(long)]
@@ -672,7 +671,6 @@ impl DatabaseSubcommand {
672671

673672
Self::Limits { command } => command.handle_args(ctx)?,
674673

675-
#[cfg(feature = "consistency_check")]
676674
Self::Synchronize { dry_run } => {
677675
docs_rs::utils::consistency::run_check(&ctx, dry_run)?;
678676
}

src/index.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ impl Index {
5656
Ok(diff)
5757
}
5858

59-
#[cfg(feature = "consistency_check")]
6059
pub(crate) fn crates(&self) -> Result<crates_index::GitIndex> {
6160
tracing::debug!("Opening with `crates_index`");
6261
// crates_index requires the repo url to match the existing origin or it tries to reinitialize the repo

src/utils/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ pub(crate) use self::rustc_version::{get_correct_docsrs_style_file, parse_rustc_
1515
pub(crate) use self::cargo_metadata::{Dependency, Target};
1616

1717
mod cargo_metadata;
18-
#[cfg(feature = "consistency_check")]
1918
pub mod consistency;
2019
mod copy;
2120
pub mod daemon;

0 commit comments

Comments
 (0)