Top "Rust-cargo" questions

Cargo is the official package manager for the Rust programming language.

Rust package with both a library and a binary?

I would like to make a Rust package that contains both a reusable library (where most of the program is …

rust rust-cargo
Why are Rust executables so huge?

Just having found Rust and having read the first two chapters of the documentation, I find the approach and the …

rust rust-cargo
How to launch a Rust application from Visual Studio Code?

I have installed the Visual Studio Code extensions for Rust: I want to run my project and I don't understand …

rust visual-studio-code rust-cargo rls
How can I build multiple binaries with Cargo?

I'd like to make a project with a daemon and a client, connecting through a unix socket. A client and …

rust rust-cargo
Cargo build hangs with " Blocking waiting for file lock on the registry index" after building parity from source

I followed the readme instructions for building Parity from source and then I execute this command: cargo build --release and …

rust rust-cargo
How to execute cargo test using the nightly channel?

I'm trying to run my tests with nightly Rust using Windows Powershell. I run cargo test in the directory, and …

rust rust-cargo
What is a crate attribute and where do I add it?

In order to get a feel for how Rust works, I decided to look at a little terminal-based text editor …

rust rust-cargo
How to get a release build with debugging information when using cargo?

The following command $ cargo build produces a non-optimized build with debugging information. On the contrary, $ cargo build --release produces an …

rust rust-cargo
Is there a command to update Cargo to the latest official release?

I seem to have diverging versions of rustc and cargo (I think), $ rustc -V rustc 1.9.0 (e4e8b6668 2016-05-18) $ …

rust package-managers rust-cargo
How to check release / debug builds using cfg in Rust?

With the C pre-processor it's common to do, #if defined(NDEBUG) // release build #endif #if defined(DEBUG) // debug build #endif …

debugging rust preprocessor rust-cargo