Top "Rust" questions

Rust is a systems programming language without a garbage collector focused on three goals: safety, speed, and concurrency.

Cross-compile a Rust application from Linux to Windows

Basically I'm trying to compile the simplest code to Windows while I am developing on Linux. fn main() { println!("Hello, …

linux windows rust cross-compiling
standard_init_linux.go:219: exec user process caused: no such file or directory

I am trying to move my rust server from Heroku to Google Cloud or AWS. Even though I like the …

docker rust static-libraries static-linking musl
What is this unwrap thing: sometimes it's unwrap sometimes it's unwrap_or

Note The specifics in this question regarding read_line and ~str pertain to a pre-1.0 version of Rust. The general …

rust
How can I update a value in a mutable HashMap?

Here is what I am trying to do: use std::collections::HashMap; fn main() { let mut my_map = HashMap::new(); …

hashmap rust
What are Rust's exact auto-dereferencing rules?

I'm learning/experimenting with Rust, and in all the elegance that I find in this language, there is one peculiarity …

reference dereference formal-semantics rust
What is this question mark operator about?

I'm reading the documentation for File: //.. let mut file = File::create("foo.txt")?; //.. What is the ? in this line? I …

rust
How do I create a HashMap literal?

How I can create a HashMap literal in Rust? In Python I can do it so: hashmap = { 'element0': { 'name': …

hashmap rust
How do I get an owned value out of a `Box`?

What is the implementation for this function: fn unbox<T>(value: Box<T>) -> T { // ??? } …

rust unsafe
Use of undeclared type or module `std` when used in a separate module

I have the following code: pub mod a { #[test] pub fn test() { println!("{:?}", std::fs::remove_file("Somefilehere")); } } I get …

rust rust-obsolete
What is the correct way to use lifetimes with a struct in Rust?

I want to write this structure: struct A { b: B, c: C, } struct B { c: &C, } struct C; The …

rust lifetime