Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2a5ae92

Browse files
committed
wip
1 parent 68b6add commit 2a5ae92

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

crates/metadata/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,15 @@ impl Metadata {
258258

259259
cargo_args.extend(self.just_cargo_args());
260260

261+
if !self.rustc_args.is_empty() {
262+
cargo_args.push("-Z".into());
263+
cargo_args.push("unstable-options".into());
264+
cargo_args.push("--config".into());
265+
let rustflags =
266+
toml::to_string(&self.rustc_args).expect("serializing a string should never fail");
267+
cargo_args.push(format!("build.rustflags={}", rustflags));
268+
}
269+
261270
cargo_args.extend(additional_args.iter().map(|s| s.to_owned()));
262271
cargo_args.push("--".into());
263272
cargo_args.extend_from_slice(&self.rustdoc_args);

src/docbuilder/limits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl Default for Limits {
1919
timeout: Duration::from_secs(15 * 60), // 15 minutes
2020
targets: 10,
2121
networking: false,
22-
max_log_size: 100 * 1024, // 100 KB
22+
max_log_size: 10000 * 1024, // 100 KB
2323
}
2424
}
2525
}

src/docbuilder/rustwide_builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,7 @@ impl RustwideBuilder {
621621
.collect::<String>(),
622622
)?;
623623

624-
let mut rustc_args = docsrs_metadata.just_rustc_args();
625-
rustc_args.push("--cap-lints=warn".into());
624+
let rustc_args = docsrs_metadata.just_rustc_args();
626625

627626
let mut command = build
628627
.cargo()

0 commit comments

Comments
 (0)