Domanda

Provo a utilizzare Cargo init per init cargo Gestisci sistema.

Ma non riesco a vedere la Generare $ home / .cargo Generare.

e la shell show

macmatoMacBook-Air:rust kula$ cargo init
warning: signature verification failed for sources.json

macmatoMacBook-Air:rust kula$ cargo sync
error: No sources defined. You may wish to run "cargo init" then "cargo sync".
.

Che succede sul sistema Gestisci merci?

Il mio sistema operativo è Mac OSX 10.7

È stato utile?

Soluzione

The issue is likely that you don't have gpg installed so it can't verify the signature of cargo-central's source file, and then proceeds to not work at all.

This situation where signature verification fails is supposed to be non-fatal, but there was a bug in cargo that caused it to not complete the 'init' command.

I've checked in a change to cargo that I believe should allow it to continue even when signature verification fails, but FWIW cargo could use some love to make it more useful and reliable.

Altri suggerimenti

cargo appears to shell out to GPG and use crappy regexes on the output. Which fails if your locale isn't what it expects. This worked for me:

LC_MESSAGES=C cargo init
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top