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.

22 questions
2
votes
0 answers

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: /lib64/libc.so.6: version `GLIBC_2.14' not found…
user3265051
  • 201
  • 1
  • 2
  • 6
2
votes
0 answers

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, cleaning the .git directory in between, so that…
2
votes
2 answers

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 Priority: extra Maintainer: Someone Build-Depends:…
Aiono
  • 133
  • 4
2
votes
1 answer

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 /var/www/rust-synapse-compress-state/ 1,8G …
rubo77
  • 27,777
  • 43
  • 130
  • 199
1
vote
0 answers

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: error: ld returned 1 exit status …
HyperX Pro
  • 11
  • 2
1
vote
2 answers

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 run custom build command for `libudev-sys…
Vivek Gani
  • 163
  • 6
1
vote
1 answer

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 when I execute this command, shows error like…
Dolphin
  • 499
  • 1
  • 13
  • 36
1
vote
3 answers

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 kernel BUG at kernel/auditsc.c:1532! invalid…
Megidd
  • 1,519
  • 3
  • 32
  • 44
1
vote
1 answer

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] No such file or directory: 'rustc': 'rustc'" From the command…
Aiono
  • 133
  • 4
1
vote
1 answer

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 the instructions from the github repository…
Hugh
  • 367
  • 1
  • 10
0
votes
0 answers

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 linux-static-hidraw backend) to talk to the device…
Honbra
  • 1
  • 2
0
votes
0 answers

pmap shows mappings of "other objects" - how do I find out what these are?

I am investigating some sort of a memory leak in my rust application. The memory keeps growing at a steady pace (starts at around 30M and grows 50M per day). The application is written in rust and it pretty much just attaches an XDP/BPF program to a…
Ollie
  • 199
  • 1
  • 4
0
votes
1 answer

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 IFreq { name: [c_char; IFNAMSIZ], flags:…
zee
  • 103
  • 2
0
votes
0 answers

QEMU takes time to load with cutsom init

So I'm working on writing my own INIT, and I downloaded arch qemu image to boot from. I mount the drive, add the init to it, umount and then run the vm with: sudo qemu-system-x86_64 \ -boot c \ -drive…
sef sf
  • 72
  • 7
0
votes
1 answer

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 is greyed out and the tooltip for it reads…
1
2