User:GYakovlev/Rust

This article provides Article description::an introduction to using or  on Gentoo, optimizing compiled code using safe, sane RUSTFLAGS.

Emerge
Install or

RUSTFLAGS
rustc --print target-cpus

Cargo configuration
Cargo can also be configured through environment variables. For each configuration key of the form foo.bar the environment variable CARGO_FOO_BAR can also be used to define the value. For example the build.jobs key can also be defined by CARGO_BUILD_JOBS.

Environment variables will take precedent over TOML configuration, and currently only integer, boolean, and string keys are supported to be defined by environment variables.

https://doc.rust-lang.org/cargo/reference/config.html

Describe to the user when the issue described in the "Synopsis" above is indeed applicable in this context.

Be clear in this matter, and use verifiable methods, such as checking output with grep or so...

Known problems
Provide a detailed analysis of why this issue occurs. If possible, do not simply describe the fix; try to provide insight into how and why the issue happened so the user can learn from it.

Resolution
rust eselect rust set

External resources
(This is an optional part.)

If there are additional resources that can be view outside this wiki, list them each with a bullet point here under an "External resources" section:


 * Visit the Gentoo Forums to acquire even more knowledge!