Skip to main content

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.

Filter by
Sorted by
Tagged with
3 votes
1 answer
248 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 ...
skarz's user avatar
  • 131
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 ...
Yashas S Nadig's user avatar
-2 votes
1 answer
393 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 ...
dominix's user avatar
  • 675
2 votes
1 answer
236 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 ...
Beppe's user avatar
  • 23
1 vote
1 answer
510 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 ...
Zoe's user avatar
  • 41
0 votes
0 answers
120 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 ...
mattsson's user avatar
  • 111
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....
user1685095's user avatar
1 vote
0 answers
529 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: ...
HyperX Pro's user avatar
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 ...
Honbra's user avatar
  • 1
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 ...
nee's user avatar
  • 103
-1 votes
1 answer
690 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› $ ...
tom_kp's user avatar
  • 43
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: ...
user3265051's user avatar
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 ...
Vivek Gani's user avatar
1 vote
1 answer
395 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 ...
Dolphin's user avatar
  • 639
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 ...
ObiBabobi's user avatar
-3 votes
1 answer
679 views

Why does the Linux kernel not use rust?

I have heard that the Linux Kernel uses rust. I don't know much about the programming language except that it has the potential to run faster than C. According to websites Rust is more safe than C ...
Linux lover's user avatar
0 votes
0 answers
251 views

udev rules work but script failed

I'm trying to detect new HDMI and new USB when they are plugged and notify my Rust program. Here's my rules: $ /etc/udev/rules.d/80-device-detect.rules KERNEL=="card0-HDMI-A-1", SUBSYSTEM==&...
Yuutsuna's user avatar
  • 101
0 votes
1 answer
803 views

Suckless's st messes up UTF-8 sometimes

I wrote an echo program in Rust (which can deal with UTF-8) and occasionally st seems to mess up the UTF-8 input. I've tried different terminal emulators, like alacritty and gnome-terminal and they ...
weisbrja's user avatar
  • 241
0 votes
1 answer
477 views

How to intercept file descriptor of file opened with inotify or others on access?

I just finished an Operating Systems course at my University, and I want to start playing with systems level programs with Rust. One of things I'm looking for is how to intercept a file descriptor of ...
Matanya's user avatar
  • 197
0 votes
1 answer
2k views

Docker File Error no such file or directory: unknown

Trying to build a pkt miner image in order to deploy to akash. Keep getting this error Error invoking remote method 'docker-start-container': Error: (HTTP code 400) unexpected - OCI runtime create ...
joseph's user avatar
  • 1
2 votes
0 answers
66 views

How can I get an in-memory filesystem that fakes stat?

I'm trying to reimplement part of git. I'm writing integration tests (in Rust) that check byte-for-byte compatibility between the output of my library and git. I currently run both on the same files, ...
Daniel Franklin's user avatar
1 vote
3 answers
220 views

kernel bug at kernel/auditsc.c:1532

I'm on a 32 bit CentOS 7 machine. I just do these commands and a kernel panic is observed: cd repos/ git clone https://github.com/SergioBenitez/Rocket cd Rocket/ cd examples/hello_world/ cargo run -v ...
Megidd's user avatar
  • 1,559
1 vote
1 answer
342 views

debuild can't find rustc

I am trying to package my Rust application for Debian but I encounter some issues. I try to build with debuild -us -uc but it gives the error Running "rustc --version" gave "[Errno 2] ...
Aiono's user avatar
  • 143
3 votes
2 answers
214 views

Debian Build-Depends on non-package binary

I am developing a Rust application and I want to provide packages for Debian. I have something similar to this configuration under debian/controls Source: com.github.yourname.yourrepo Section: x11 ...
Aiono's user avatar
  • 143
0 votes
1 answer
964 views

Trying to install Mullvad VPN on Manjaro ARM Laptop via yay and getting rust backtrace error

Please help me solve this issue! I have already uninstalled rust but that did not solve the problem... Here is the code: error: failed to run custom build command for `libdbus-sys v0.2.1` Caused ...
Flowet's user avatar
  • 1
1 vote
1 answer
356 views

Can't compile deno on FreeBSD

I'm trying to build deno (a javascript runtime built in rust) from source on FreeBSD 12.1. The compilation failed at rusty_v8. I then try to compile directly from the rusty_v8 repo. I've followed ...
Hugh's user avatar
  • 387
2 votes
1 answer
571 views

Install minimal Rust setup on Debian

I would like to run this Rust script on my Matrix server but it uses 1.8GB space to build it: $ du -shc .rustup/ .cargo/ /var/www/rust-synapse-compress-state/ 1,2G .rustup/ 86M .cargo/ 561M ...
rubo77's user avatar
  • 29.4k