Skip to content
Advertisement

Tag: rust-cargo

How to use SIGALARM in rust?

I have a problem using alarm from nix library in rust. I am trying to communicate two child process with alarms, the exercise consist in send a signal to child process to other every two seconds, and retun it with pipe. When I run the code it still waiting and I can’t see the message. This is my code: Thanks!!!

Error: “linker ‘cc’ not found” when cross compiling a rust project from windows to linux using cargo

I have a basic rust/cargo project with a single main file and some basic dependencies. The cargo build command works fine when the target is not specified (I am using windows so it builds to windows), but when I try to cross compile the program to linux using cargo build –target=x86_64-unknown-linux-gnu or cargo build –target=x86_64-unknown-linux-musl, the process fails with the

Advertisement