This compiles fine (from the rust lang book): fn main() { let mut s = String::from("hello"); s.push_str(", world"); println!("{}", s); } This does
I a writing a simple code for MPI Gather, but I am getting the error: An error occurred in MPI_Gather reported by process [1154023425,0] on communicator MPI_COM
I a writing a simple code for MPI Gather, but I am getting the error: An error occurred in MPI_Gather reported by process [1154023425,0] on communicator MPI_COM
I have read the rfc 2005, knowing the process of manipulation is a repeated operation. And I say encounters reference pattern, I am not talking about encounteri
I depend on crates a and b, where I patched b to a git dependency on ref foo: # Cargo.toml of my crate [dependencies] a = "1.0.0" b = "1.0.0" [patch.crates-io]
How to set a unique field in the mongodb rust implementation? Are you supposed to use create_index()? async fn create_id_fields(client: Client) -> Result {
I am new to Rust and I am using the Postgres crate. I am trying to create a wrapper around the PostgreSQL client, and I have defined this Struct: pub struct Pos
Question I usually use c++ lang, and recently I'm learning rust lang but now confusing the concept of lifetime. My understanding for lifetime is as follows. Is
I have a Rust (2021) lib. It compiled fine. I added a build.rs file with this in it: extern crate cbindgen; use std::env; fn main() { let crate_dir = env:
I was getting into Rust and looking at these simple instructions for Yew framework (a frontend framework for Rust). (Found at: https://yew.rs/docs/tutorial) I f
Please someone explain the code below and how can it be unsafe and why is borrowchecker complaining here? I am very new to rust and I come from a little bit of
I'm trying to go through the Cosmwasm docs and I'm stuck on the "Setting Up Environment" step. I'm on Ubuntu so when I put the parameters under #bash in my .bas
I have the following code which will throw me this error. Basically I want C to reference B which has reference to A. How can I achieve this in Rust? Is it poss
I tried to get the user input and then compare it to somthing and i got a problem :( this is my code: use std::io::stdin; fn main() { let
Is there any way to filter a users wallet by metaplex candy machine id? I know how to get all of a users nfts via getParsedTokenAccountsByOwner. const tokens =
Im trying to read my DHT22 weather and humidity sensor on HiFive1 rev b board, but it doesn't want to respond. I connected data line with 10k resistor to 5V Vcc
I have a set of types that implements a given trait, I want to get a concrete type object from a string name, strangely it works when my match returns Box<dy
I'm writing an HTTP server in the actix_web framework using the tokio runtime and tokio-stream utilities. I would like to send some data (actix::web::Bytes) fro
I am following the Rust book to learn Rust and currently learning about ownership. Here it mentions, We’ve already seen string literals, where a string v
I want to create an interface for a (numeric) algorithm for which I want to provide an implementation with ndarray and similar libraries (let's say pytorch bind