Questions tagged [rust]

11 questions
1
vote
1 answer

How to run two commands with a simple F7 keybind command in Visual Studio Code?

When I press F7, cargo test runs in the terminal in the background. I can't make F7 command both to run cargo test also open the terminal where it ran that command. This is what I tried: [ { "key": "f7", "command":…
1
vote
1 answer

Anchor build error cargo metadata (os error 123)

I started a brand new project on Windows x64. When i'm trying to do anchor build it is not working and I get the following output: Failed to obtain package metadata: 'cargo metadata' exited with an error: error: failed to load manifest for…
Santiago
  • 11
  • 1
1
vote
0 answers

Why does Cargo not Work on Emulated Linux?

When I was trying to install rust on this Linux machine, it worked (though it did say the $HOME is not the same as euid derived home). I ran the script again (the standard rustup.sh script), this time using -y, and it installed just fine. But when…
inyourface3445
  • 413
  • 2
  • 10
0
votes
1 answer

VS Code Shortcuts for Efficient Debug Run Test Workflow in Rust

I am having trouble running tests or debugging a specific test. In particular I have to click these buttons to single out run specific tests. But when I am debugging or searching for elsewhere, and once the debugging session is over, I have to get…
facebook
  • 201
  • 1
  • 2
  • 10
0
votes
0 answers

Huge slow down on rust programms calls on server with users shared across multiple servers

Rust programms (like ripgrep, fd, rustc, cargo) are stalling before the actual code runs. Running strace shows that the system blocks on a openat on /home, ... statx(AT_FDCWD, "/home//.rustup", AT_STATX_SYNC_AS_STAT, STATX_ALL,…
gugo
  • 1
  • 1
0
votes
1 answer

systemctl start service command is not working in userdata of ec2

I am trying to run systemctl service in ec2 instance on launching of ec2 instance. So for to run my script on start of ec2 instance i am running my script using user data of ec2 instance. So my script has the following lines of code in…
0
votes
1 answer

Using VScode with Rust-Analyzer on a remote system, "No definition found" missing glibc?

So I'm working with Rust utilizing VSCode as my IDE. One issue I'm having is with Rust-Analyzer, which appears to be the currently recommended extension for rust support. I have two different systems, which I routinely do remote work on. the first…
Michael
  • 153
  • 1
  • 1
  • 15
0
votes
1 answer

The rust file is not working as I `cargo run` with crontab

I type sudo -i to proceed to edit commands of crontab. I've written the following line inside the file of crontab. @reboot cd /home/username/superuser && cargo run; The following content is inside the main.rs of the normal cargo. use std::fs; fn…
0
votes
0 answers

Rust multithreading support

I want to run a Minecraft/rust server on a machine that has Linux (raspberry pi OS but I can change this) is there a way to run the server with multiple cores? (I would start the server in terminal if that helps)
Cody
  • 1
0
votes
0 answers

I can't install rust on my mac

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh I did installed brew install curl-openssl but still I cant install rust. When I download this script in browser and run it i get: bash rustup-init.sh info: downloading…
gkucmierz
  • 621
  • 5
  • 5
-1
votes
0 answers

VS Code run the last debug session when I click the Debug button On a #[test] case in Rust

When I make a test case like this /* |Run|Debug| */ #[test] fn test_case() { } These nice Run and Debug buttons appear at the top of the case. I can click and run the tests or debug the test no problem. But there are no shortcuts that can be…
facebook
  • 201
  • 1
  • 2
  • 10