A crate was declared but cannot be found.
Erroneous code example:
extern crate foo; // error: can't find crate
You need to link your code to the relevant crate in order to be able to use it (through Cargo or the -L option of rustc, for example).
[dependencies] in Cargo.toml.package = under [dependencies] in Cargo.toml.std or corestd prepackaged. Consider one of the following:rustup target addcargo build -Z build-std#![no_std] at the crate root, so you won't need std in the first place.x.py build library/std. More information about x.py is available in the rustc-dev-guide.