I'm trying to build some libraries using the wasm32-unknown-unknown and I get I can build using the wasm32-unknown-emscripten but it is not support ...
I'm trying to build some libraries using the wasm32-unknown-unknown and I get I can build using the wasm32-unknown-emscripten but it is not support ...
I'm trying to compile my game engine for WebAssembly with Emscripten. The engine is powered by Rust and SDL2. The config.toml file says: [target.was ...
I have a local playground setup with a bunch of experiment files (each with a main()), where my Cargo.toml looks like this: [package] name = "playgro ...
When I trying to launch some .rs files (rust files) I catch error in neovim: My lsp.lua config file is empty, because all servers I installed from ...
I am using build a sample app from yew docs. I don't know why this app throw this error. this is yew version in Cargo.toml this is code in main. ...
I would like to expose in my REPL (built on top of Boa) the version of the js engine: I'm trying to use a build.rs file for that: And somewhere in ...
I'm working on a Rust project. I'm using Cargo feature flags for conditional compilation of the some code. There are cases where I have to include the ...
I have a const variable that I need to be hardcoded at runtime but configurable at compile time. In C/C++ style preprocessors one can typically tell t ...
I want to use parametrized testing and found rstest that can do this well. adding: use rstest::rstest; in the main.rs file and putting the #[rstest] ...
I want to conditionally change the crate-type field in my Cargo.toml based on an enabled feature. I could not find any way to do this. Is it possible ...
In my binary project, in Cargo.toml I have (explicitly) added a dependency d, but some of my other dependencies also depend on d. Dependency d has a f ...
I want to be able to read the Cargo.lock file from build.rs without resorting to literal paths. In build.rs, std::env::var("CARGO_MANIFEST_DIR").unwr ...
I'm trying to run a rust program that I've been using on Ubuntu on an AlmaLinux distro. It utilizes the pcap crate, which is installed. When I try t ...
Is there a robust way, maybe something in cargo CLI, to get the version of the crate? I can grep on Cargo.toml, but I'm looking for something that wo ...
I have a rust project, it has the following structure: The crate sandbox is a bin crate, engine is designed to be a dylib, and test_static is a rli ...
I'm running some tests with cargo test and I want the tests to be sorted in alphabetical order. If I do cargo run I get something like the following: ...
I am very new to rust with a background in javaScript and i am not able to go through a silly problem that this is "How to JSON.parse in Rust?" I hav ...
I just created a new Rust project and introduced one dependency in main.rs. When I try to run rustdoc src/main.rs, I get the following error: Even ...
I'm new to rust. I'm following a getting started tutorial that imports the crate random-number but when running the code I'm getting the error can't f ...
The crates.io site shows number-of-downloads statistics and that's great. Is there an option to also see download statistics per feature? As an examp ...