mirror of
https://github.com/esp-rs/espup.git
synced 2025-10-02 15:14:56 +00:00
Improve print_arguments
This commit is contained in:
parent
248b075976
commit
66088e8591
@ -134,7 +134,7 @@ fn install(args: InstallOpts) -> Result<()> {
|
|||||||
&llvm_version,
|
&llvm_version,
|
||||||
arch
|
arch
|
||||||
);
|
);
|
||||||
print_arguments(&args);
|
print_arguments(&args, arch, &targets, &llvm_version);
|
||||||
let mut exports: Vec<String> = Vec::new();
|
let mut exports: Vec<String> = Vec::new();
|
||||||
|
|
||||||
check_rust_installation(&args.nightly_version);
|
check_rust_installation(&args.nightly_version);
|
||||||
|
@ -321,9 +321,9 @@ async fn fetch_url(url: String, output: String) -> Result<(), String> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn print_arguments(args: &InstallOpts) {
|
pub fn print_arguments(args: &InstallOpts, arch: &str, targets: &Vec<Chip>, llvm_version: &str) {
|
||||||
println!(
|
println!(
|
||||||
"{} Installing esp-rs with:
|
"{} Installing esp-rs for {} with:
|
||||||
- Build targets: {:?}
|
- Build targets: {:?}
|
||||||
- Cargo home: {:?}
|
- Cargo home: {:?}
|
||||||
- Clear cache: {:?}
|
- Clear cache: {:?}
|
||||||
@ -337,13 +337,14 @@ pub fn print_arguments(args: &InstallOpts) {
|
|||||||
- Toolchain version: {:?}
|
- Toolchain version: {:?}
|
||||||
- Toolchain destination: {:?}",
|
- Toolchain destination: {:?}",
|
||||||
DISC,
|
DISC,
|
||||||
args.build_target,
|
arch,
|
||||||
|
targets,
|
||||||
&args.cargo_home,
|
&args.cargo_home,
|
||||||
args.clear_cache,
|
args.clear_cache,
|
||||||
&args.espidf_version,
|
&args.espidf_version,
|
||||||
&args.export_file,
|
&args.export_file,
|
||||||
args.extra_crates,
|
args.extra_crates,
|
||||||
args.llvm_version,
|
llvm_version,
|
||||||
&args.minified_espidf,
|
&args.minified_espidf,
|
||||||
args.nightly_version,
|
args.nightly_version,
|
||||||
&args.rustup_home,
|
&args.rustup_home,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user