You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docbuilder/rustwide_builder.rs
+1-25Lines changed: 1 addition & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -299,34 +299,10 @@ impl RustwideBuilder {
299
299
}
300
300
301
301
pubfnadd_essential_files(&mutself) -> Result<()>{
302
-
// Check if toolchain is available, install if needed
303
-
matchself.detect_rustc_version(){
304
-
Ok(_) => {
305
-
info!("Toolchain is already installed");
306
-
}
307
-
Err(err) => {
308
-
// Check if the error is specifically due to missing toolchain
309
-
let err_msg = err.to_string();
310
-
if err_msg.contains("No such file or directory")
311
-
|| err_msg.contains("command not found")
312
-
|| err_msg.contains("not installed")
313
-
{
314
-
info!("Installing nightly toolchain because it was not found");
315
-
self.update_toolchain()?;
316
-
}else{
317
-
// Don't try to install the toolchain if some other error occurred
318
-
returnErr(anyhow!(
319
-
"Failed to detect rustc version: {}\n\nThis might indicate the nightly toolchain is not properly installed. Please run 'cratesfyi build update-toolchain' first.",
320
-
err
321
-
));
322
-
}
323
-
}
324
-
}
325
-
326
302
let rustc_version = self.rustc_version()?;
327
303
let parsed_rustc_version = parse_rustc_version(&rustc_version)?;
328
304
329
-
info!("building a dummy crate to get essential files for {rustc_version}");
305
+
info!("building a dummy crate to get essential files");
0 commit comments