About 1,610,000 results
Open links in new tab
  1. rust - Is there a command to update Cargo to the latest official ...

    rustc and cargo are shipped together, but that doesn't mean that their versions need to match. In fact, they do not match until Rust 1.26.0, when the Cargo binary was changed to print the Rust …

  2. What's the difference between Cargo's build and rustc commands?

    Mar 7, 2020 · This module contains the entry point for starting the compilation process //! for commands like `build`, `test`, `doc`, `rustc`, etc. In other words, cargo build and cargo rustc …

  3. rustup claims to have updated rustc to a new version, but running ...

    Oct 10, 2022 · rustup claims to have updated rustc to a new version, but running `rustc --version` shows the old one, why? Asked 3 years, 3 months ago Modified 8 months ago Viewed 8k times

  4. How can I specify the version of Rust required for a Cargo package ...

    Sep 28, 2015 · In Rust 1.56.0 you can use rust-version: The rust-version field is an optional key that tells cargo what version of the Rust language and compiler your package can be compiled …

  5. How to change currently active version rust compiler?

    Mar 19, 2024 · The repository probably has a rust-toolchain.toml file which pins a compiler version, thus why rustup/rustc/cargo --version reports different active toolchain versions in …

  6. What target-features does rustc use by default? - Stack Overflow

    Dec 5, 2020 · There are some target-feature s which can be used by adding parameter -C target-feature=+sse,+avx to compiler. Available features can be shown using rustc --print target …

  7. rust - How to pass rustc flags to cargo? - Stack Overflow

    Jun 26, 2016 · You can pass flags through Cargo by several different means: cargo rustc, which only affects your crate and not its dependencies. The RUSTFLAGS environment variable, …

  8. How can I find the current Rust compiler's default LLVM target …

    How do I discover which target triple rustc or cargo are currently using? rustc --print cfg prints a list of values that don't seem to correspond to the triple (there's no unknown in there, in …

  9. Where should I place a static library so I can link it with a Rust ...

    May 7, 2017 · That's the basic functionality. You could also use the build script to specify which library to link, instead of having it in your code (rustc-link-lib). I prefer this because then the two …

  10. rust - How can I use a `rustc` crate? - Stack Overflow

    Jan 22, 2018 · 9 rustc is indeed not published on crates.io. Because the API for the rustc crate is not stable, you must switch to the nightly compiler and opt in by adding this line at the …