rust-cargo Questions
3
Solved
I am trying to make a get request to a url with rust and everytime I run this project I get this error, my other rust project work fine.
here's my cargo.toml file.
[package]
name = "api_req&qu...
Juju asked 25/5, 2022 at 16:39
3
When I run cargo install cargo-binutils, I get the below error. I have gcc installed and in my path, to the point where where gcc correctly returns the location.
gcc version: gcc.exe (i686-posix-...
Francinefrancis asked 6/5, 2020 at 21:44
3
Solved
How do I find out the dependencies in Cargo.toml that are unused? How can I remove them automatically?
Transpacific asked 2/5, 2022 at 5:12
3
Solved
I've tried this repeatedly and still can't figure out where I'm going wrong.
I installed Rust from the official website (version 1.44.1), and I can run rustc --version and get the right result. I c...
Haileyhailfellowwellmet asked 26/6, 2020 at 2:21
2
Solved
I have a library crate which I want to profile using cargo flamegraph. But however I try to run cargo flamegraph, I get error messages. The library has the following structure:
utilrs
├── Cargo.loc...
Kaiserslautern asked 23/10, 2022 at 15:11
1
I'm running this in powershell for my Rust project:
cargo build --target thumbv7em-none-eabihf
And it produces this error after I try to execute this command:
error: failed to parse manifest at C:\...
Shealy asked 30/3, 2022 at 0:31
3
Solved
I've just started playing with Rust and was trying to generate docs for the code I've written. When I issued cargo doc, I saw something a little weird.
21:53 $ cargo doc
Compiling regex-syntax v0...
Casualty asked 11/12, 2015 at 2:59
4
I've installed several CLI tools using cargo install (for instance, ripgrep). How do I see a list of all the crates I've downloaded using cargo install? Sort of like apt list --installed but for ca...
Mutualism asked 25/3, 2020 at 20:52
6
Solved
I'm using Rust 1.35.0 to try out some Rust examples and I could not get it to compile, as I keep getting the following message:
error[E0463]: can't find crate for `core`
I ran rustc --explain E0...
Hanan asked 31/5, 2019 at 6:2
4
Solved
I want to conditionally compile my source code using cfg with Cargo,
after Googling for a while,
it seems that the solution is to use cargo --features.
http://doc.crates.io/manifest.html
I tried ...
Leticialetisha asked 24/12, 2014 at 6:40
3
Solved
I am using MacOS Big Sur, and i am trying to cross compile to windows, but the problem is, this "error: linker x86_64-w64-mingw32-gcc not found" prevents me from doing that, here are my c...
Zubkoff asked 25/3, 2022 at 21:18
3
Solved
I am getting this weird error:
cargo build
Updating crates.io index
error: failed to get `anyhow` as a dependency of package `FlexDB v0.1.0 (E:\projects\FlexDB)`
Caused by:
failed to load source...
Intendment asked 8/10, 2021 at 15:33
4
Solved
I have the following projects in a workspace:
Workspacefolder
|
+-- Project A
| |
| +-- build.rs
|
+-- Dep
| |
| +-- test.json
|
+-Cargo.toml
In Project A, there is build.rs that want...
Strike asked 24/4, 2017 at 0:8
3
I'm writing a library in Cargo. If this library depends on another library like libc, which exposes a feature (in this case, use_std), how do I make a feature I expose enable or disable that featur...
Keener asked 13/10, 2016 at 12:51
4
Solved
I'm using lld as my linker currently for Rust, but recently encountered the mold project, which is faster than lld. I'd like to try it for Rust compilation, but I'm not sure how to pass it in as my...
Kempis asked 12/5, 2021 at 22:59
2
Solved
I don't want to use anything but the stable toolchain for my normal work but would like to be able to debug my macros using cargo expand. I don't even now how to use anything but the default stable...
Gowen asked 10/8, 2020 at 22:24
8
Solved
I'm trying to use the rust-mosquitto library. My current Cargo.toml is:
[package]
name = "HomeDaemon"
version = "0.1.0"
authors = ["RTR <[email protected]>"]
[dependencies.mosquitto]
g...
Hammerhead asked 22/7, 2015 at 18:23
7
Solved
Is it possible to make Visual Studio Code run cargo fmt on file save?
Admass asked 6/6, 2021 at 14:0
3
Solved
What's the right Rust data type to use for a timestamptz when using postgres version 0.17.0 with Rust 1.40.0?
I read the docs for Timestamp but have no idea what this means or how to implement it....
Sovran asked 15/1, 2020 at 22:56
6
Solved
I host a Rust project in git repository and I want to make it print the version on some command. How can I include the version into the program? I thought that the build script could set environmen...
Impenetrable asked 3/5, 2017 at 7:13
5
Solved
I know how to read the command line arguments, but I am having difficulties reading the command output from a pipe.
Connect a program (A) that outputs data to my Rust program using a pipe:
A | R...
Wale asked 9/4, 2018 at 12:30
2
CLI apps on Unix-like OSes generally provide man pages for reference. I have not yet seen any good guide on how to do this in the Rust ecosystem - what is the idiomatic way of doing this?
I am awa...
Stunk asked 6/4, 2018 at 18:27
5
Solved
How do you access a Cargo package's metadata (e.g. version) from the Rust code in the package? In my case, I am building a command line tool that I'd like to have a standard --version flag, and I'd...
Pontificate asked 8/1, 2015 at 12:41
3
Solved
My project A depends on library B that depends on library C.
Library B sets the dependency version to "*" (any) so Cargo will download the latest version of C.
How can I instruct Cargo to...
Rigdon asked 4/1, 2015 at 20:30
2
On my Windows 10 machine it's 3.5GB. What is it storing? How can I trim it down?
Deuteragonist asked 25/9, 2020 at 12:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.