Questions tagged [rust]
Questions related to Rust, a language for systems programming with a special focus on security. Programming questions should be posted on Stack Overflow.
27
questions
3
votes
1
answer
245
views
How to keep a script running persistently in background
Currently I launch my UDP BitTorrent tracker using the command ./target/release/aquatic_udp -c "aquatic-udp-config.toml" the app shuts down when I close the console. What is the preferred ...
0
votes
2
answers
69
views
How to ask for root password from the user for my GUI app which pipes it to makepkg?
I was learning rust. I am building a simple GUI application that scrapes through aur and installs a package. I am using tauri for GUI.
So, to install an aur application, I will run makepkg -si inside ...
-2
votes
1
answer
390
views
How much of the Linux kernel is currently coded in rust? [closed]
Its a curiosity thing, but I would like to know How much of the Linux kernel is currently coded in rust ? I means in percent, and if you known it which part ? is there only drivers or is it real part ...
2
votes
1
answer
234
views
can't install gnuplot
I am using gnuplot and Rust for a project on my Linux Mint (cinnamon) PC. However once I try to display a picture I get:
called `Result::unwrap()` on an `Err` value: Couldn't spawn gnuplot. Make sure ...
1
vote
1
answer
507
views
libudev not found in pkg-config search path in GitHub actions ubuntu-latest environment
I'm setting up CI for a Rust application I'm developing that (indirectly) depends on the libudev-sys crate. Part of this CI means building my crate, which means also building libudev-sys.
When the ...
0
votes
0
answers
119
views
Getting Rust in QNX
I saw this article on the blackberry site
https://blogs.blackberry.com/en/2023/02/this-is-the-kind-of-rust-the-automotive-industry-needs
Do anyone know if this is available yet? Even as a preview ...
0
votes
0
answers
75
views
How do I debug code from dylib in lldb
I have a sketch of code in rust that uses dynamically linked ffmpeg library.
How do I actually see the code of ffmpeg inside lldb.
I've modified portfile of ffmpeg6 by adding this lines.
configure....
1
vote
0
answers
528
views
How to install LLVM-14 on Ubuntu?
I have installed LLVM-14 on Ubuntu manually. Everything seems to work fine except ld during the compilation of cargo-bpf in Rust cargo.
= note: /usr/bin/ld: cannot find -lLLVM-14
collect2: ...
0
votes
1
answer
237
views
Hidraw doesn't find device without device-specific kernel driver being loaded
I'm trying to make a userspace Linux program that talks to a Bluetooth HID device, specifically the Wii remote.
When the hid-wiimote kernel module is loaded, I can use the hidapi library (with the ...
0
votes
1
answer
149
views
Getting IPv6 packages when setting a newly created TAP device up
I'm trying to learn how to TCP works by creating a TCP/IP stack, and as the title says, I'm programmatically creating a TAP device in Rust as follows
pub struct Tap {
fd: i32,
}
#[repr(C)]
struct ...
-1
votes
1
answer
688
views
How to uninstall helix-editor completely along with all helix related files and configurations?
The steps here are NOT clear to me. I am using Debian
https://github.com/helix-editor/helix/discussions/5228
Installation steps:
$ git clone https://github.com/helix-editor/helix
~/helix ‹master› $ ...
2
votes
0
answers
227
views
pip rust libc.so.6 error Centos
OS: Centos 6
installed pip success
Installed Rust manually - success
curl https://sh.rustup.rs | sh
pip install cryptography
/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc: ...
5
votes
2
answers
2k
views
Rustup-installed Rust on Fedora: Unable to find Libudev.pc
I'm trying to build a rust app on fedora within a rustup environment that depends on libudev. At the moment I get the error when trying to compile the app with cargo build --release:
error: failed to ...
1
vote
1
answer
391
views
error: component download failed for rls-aarch64-apple-darwin: could not download file from
I want to using mirror address to speed up the rust package download, so I add the mirror address like this:
RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup rustup install stable
but ...
0
votes
1
answer
2k
views
CodeLLDB for VSCode not working with remote gdbserver
I'm currently trying to set up remote debugging on a Raspberry Pi using the CodeLLDB plugin for Visual Studio Code and gdbserver. Unfortunately this doesn't seem to work, since every breakpoint I set ...