Questions tagged [rust]
The rust tag has no usage guidance.
14 questions
0
votes
0
answers
66
views
Inlay hints and completion not working for Rust through rust-analyzer
Problem
Inlay hints and autocompletion are not showing up while typing or moving the mouse pointer in Visual Studio Code for Rust code.
However, JavaScript inlay hints and autocompletion work, for ...
0
votes
2
answers
146
views
I have my own domain, how can I connect to it through the program? [closed]
I recently got my own domain, it has hosting and a DNS server. How can I connect to it using the program?
let listener = TcpListener::bind("http:://my_example_domain").await.unwrap();
I use ...
0
votes
1
answer
149
views
Anchor build error (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
...
0
votes
1
answer
129
views
ld: library 'vulkan' not found
Trying to build https://github.com/ash-rs/ash and run cargo run --bin texture but I'm not sure how I'm expected to install Vulkan on macOS.
I tried installing molten-vk and vulkan-tools but neither of ...
0
votes
0
answers
299
views
ps command is stuck forever reading `/proc/*/environ`
I'm trying to use Rustrover, but it is pretty unstable, and whenever it crashes or is stuck and killed by me, ps command and any other task managers get stuck forever before showing anything. ...
0
votes
1
answer
99
views
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 ...
1
vote
1
answer
384
views
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:
[ {
&...
0
votes
1
answer
1k
views
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 ...
0
votes
1
answer
788
views
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 ...
1
vote
0
answers
107
views
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 ...
0
votes
1
answer
768
views
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, ...
0
votes
1
answer
333
views
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 ...
0
votes
0
answers
261
views
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 ...
0
votes
0
answers
1k
views
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 ...