Skip to content

Commit 91f7816

Browse files
committed
Rebased on top of hints_experiment
1 parent 451ca0d commit 91f7816

File tree

4 files changed

+37
-132
lines changed

4 files changed

+37
-132
lines changed

Cargo.lock

Lines changed: 21 additions & 118 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/semver-crater.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,20 @@ fn main() -> anyhow::Result<()> {
191191

192192
match args.crates.is_empty() {
193193
true => {
194-
let mut query = crates_io_api::CratesQuery::builder()
195-
.page_size(100)
196-
.sort(crates_io_api::Sort::Downloads)
197-
.build();
198-
query.set_page(1);
199-
for crate_info in client.crates(query)?.crates.into_iter() {
200-
check_crate(
201-
client.get_crate(&crate_info.name)?.versions,
202-
&crate_info.name,
203-
&mut csv_writer,
204-
);
205-
csv_writer.flush()?;
194+
for page in 1..101 {
195+
let mut query = crates_io_api::CratesQuery::builder()
196+
.page_size(100)
197+
.sort(crates_io_api::Sort::Downloads)
198+
.build();
199+
query.set_page(page);
200+
for crate_info in client.crates(query)?.crates.into_iter() {
201+
check_crate(
202+
client.get_crate(&crate_info.name)?.versions,
203+
&crate_info.name,
204+
&mut csv_writer,
205+
);
206+
csv_writer.flush()?;
207+
}
206208
}
207209
}
208210
false => {

src/check_release.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use clap::crate_version;
55
use itertools::Itertools;
66
use termcolor::Color;
77
use termcolor_output::{colored, colored_ln};
8-
use trustfall::{FieldValue, TransparentValue};
8+
use trustfall_core::ir::{FieldValue, TransparentValue};
99
use trustfall_rustdoc::{VersionedCrate, VersionedIndexedCrate, VersionedRustdocAdapter};
1010

1111
use crate::{

src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::collections::BTreeMap;
22

33
use serde::{Deserialize, Serialize};
4-
use trustfall::TransparentValue;
4+
use trustfall_core::ir::TransparentValue;
55

66
use crate::ReleaseType;
77

0 commit comments

Comments
 (0)