Artificial intelligent assistant

rust-libp2pのexampleのpingを模写して実行するとcargoが壊れる example pingCargo.toml error: the 'cargo.exe' binary, normally provided by the 'cargo' component, is not applicable to the 'stable-x86_64-pc-windows-msvc' toolchain exampletoml Cargo.toml: [dependencies] futures = "0.3.14" libp2p = "0.37.1" OS: Windows10 Home rustc: 1.52.0 stable cargo: 1.52.0 libp2p example ping: <

> Avast

rustup

rust-lang/rustup/src/toolchain.rs#L358-L361


if !component_status.available {
return Err(anyhow!(format!(
"the '{}' component which provides the command '{}' is not available for the '{}' toolchain",
component_status.component.short_name(&manifest), binary_lossy, self.0.name)));
}


Rust`cargo.exe`

WindowsAvast

1. `cargo run`
2. `$Env:HOME\.cargo\bin\cargo.exe``rustup``$Env:HOME\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\cargo.exe`
3. `.rustup\toolchains\ ... \cargo.exe`
4. libp2pAvast
5. Avast`.rustup\toolchains\ ... \cargo.exe`
6. `cargo run`
7. `rustup``.rustup\toolchains\ ... \cargo.exe`Avast



Avast

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e0e750bde160ffd99e2268a0abd20a71