The following command $ cargo build produces a non-optimized build with debugging information. On the contrary, $ cargo build --release produces an optimi
I want to find files for some pattern with multiple extensions. Ex:- some/path/**.{json,jsonc} But rust glob function is not working with these types of patt
How do I output colored text to the terminal using Rust? I've tried using the special escape characters that I found in this python answer, but they just print
I seem to have diverging versions of rustc and cargo (I think), $ rustc -V rustc 1.9.0 (e4e8b6668 2016-05-18) $ cargo -V cargo 0.10.0-nightly (10ddd7d 2016-04
I'm writing for a program that hooks into a web service which sends back JSON. When a certain property isn't there it provides a empty object, with all its fie
Rust's chrono::Local contains the local timezone information but does not seem to have any methods to get the value as a string or a number of seconds offset.
I would like to run a function with lots of different variables Let assume my function is : async fn do_the_hard_job(my_input: u16) { ... // do the hard
ORIGINAL QUESTION: I am currently trying to write a library in rust - to be compiled to WASM - for converting a bip39 mnemonic passphrase into an Arweave JWK. I
I am currently learning Rust, and for that purpose I wanted to create my own crate and use it. However, Rust can't find this crate. I have the following file st
I'm trying to teach myself Rust by working on a little calendar project. Here I'm trying to generate a list of dates spanning three whole months around a given
I have the following code which uses both Rc and Box; what is the difference between those? Which one is better? use std::rc::Rc; fn main() { let a = Box::
Trying to install and work with zkgroup. Build, run for specific iOS device working fine. But generic archiving is not working. Error text: ld: Invalid value (P
recently I am using three_d this crate in my project, but when I use three_d and egui in the same script it causes an ambiguous name error use three_d::*; use e
I have used frontier-node-template from parity tech repo to setup a private evm supported network. The network is running fine, authoring blocks and connecting
Like in the topic, why Rust prevents from multiple mutable references? I have read chapter in rust-book, and I understand that when we have multi-threaded code
I am doing the Rust by Example tutorial which has this code snippet: // Vec example let vec1 = vec![1, 2, 3]; let vec2 = vec![4, 5, 6]; // `iter()` for vecs y
I am searching for a way to supply the username and password while connecting to ldaps. The examples on the documentation page for crate ldap3 seem not illustra
Regex::replace_all has the signature fn (text: &str) -> Cow<str>. How would two calls to this be written, f(g(x)), giving the same signature? Here'
I'm trying to use windows-rs to use GetNamedSecurityInfoW microsoft api docs to read file permission information, but I keep getting error code 87 corresponds t
I have an enum with the following structure: enum Expression { Add(Add), Mul(Mul), Var(Var), Coeff(Coeff) } where the 'members' of each varia