I am trying to create a library in rust to be used with rust executables. In C you can just create your .a or .so (or .lib or .dll on windows) and use ...
I am trying to create a library in rust to be used with rust executables. In C you can just create your .a or .so (or .lib or .dll on windows) and use ...
I'm trying to build no_std code with wasm32-unknown-unknown target: After the build, I get the following wasm binary code (I use wasm2wat tool): ...
When I document my project by 'cargo doc' then it can happen that the name of my own project shadows a dependend crate which is then invisible. So I ...
Im using cargo-wharf to build my Rust project. Cargo.toml: # syntax = denzp/cargo-wharf-frontend:v0.1.0-alpha.2 [package] name = "project_name" vers ...
The Cargo book describes how to have a library and multiple executable in a single Cargo project. I'd like to have an executable consist of multiple ...
We can pass a flag to Cargo that is in turn passed to rustc to emit intermediate assembly files for the whole contents of a crate: After running th ...
So I have the following rust aws lambda function: The idea here is that I want to return the response from the binary in JSON format. I'm compilin ...
In a Rust desktop application, some version of the window struct is always used, e.g., WNDCLASSW. When WNDCLASSW is defined, a class icon may be added ...
My rust project includes a .csv data file that is read in the main program. For this purpose I use the include_str macro, so the file is just availabl ...
why cargo build --target wasm32-wasi throws and error about not having wasm32-wasi while it is installed. steps to reproduce cargo new train rus ...
This is an issue that I keep running to and have not yet found a fix. I am using Cargo to create my portfolio website, and when I add videos that loop ...
Rustdoc offers some pretty useful lints for documentation. I'd like to check these lints as part of continuous integration for all of the crates in my ...
Is it possible to have cargo run external tools before compiling the code? The exact problem that I am having: I have a parser generator which is cr ...
I am using cargo on a Chromebook Lenovo Duet 5 I have this error just as I try to code something a little more complex I was trying to import an image ...
I have a program that uses a large amount of stack. I use Linux, and so have already set the stack size limit via ulimit -s 1048576. Running cargo te ...
I have a project that consist in two crates in a workspace, one of them crate-sys generates some bindings. The other, crate consumes that crate-sys an ...
When running cargo install cargo-audit on Ubuntu (WSL) I'm running into an issue due with OpenSSL linking incorrectly. The error output is as follows ...
I'm new to rust and trying to understand the borrowing principle. I have the following code: fn main() { let number_list = vec![34, 50, 25, 100, ...
I am trying to run a rust application but some internal dependency issue is breaking, I am new to rust so struggling to fix it. This is the issue. ...
I want to run rust code with a keybinding such as . I tried the command :!cargo run --bin %. But in that case the % equals to 'src/bin/test.rs', ins ...