Hi Hannes,

I've had success setting up, compiling and running a Rust project (a simple 
main "Hello world" function), dropping in a shell with only these 2 
dependencies.

```
guix shell rust rust:cargo
```

Is your program specific in any way? Including external C libraries maybe?
Sincerely,
--
Jean SIMARD aka woshilapin

Le mercredi 21 août 2024 à 15:25, Hannes Walter <[email protected]> a écrit 
:

> Hi all,
> 
> 
> I'm trying to learn how to program in rust, but using default rust
> package with `guix install rust` throws an error during the linking phase
> 
> --8<---------------cut here---------------start------------->8---
> 
> ld: cannot find -lrt: No such file or directory
> --8<---------------cut here---------------end--------------->8---
> 
> 
> I also tried setting up rustup in a container as described in
> https://guix.gnu.org/en/blog/2023/the-filesystem-hierarchy-standard-comes-to-guix-containers/
> but I can't get cargo to start a new project there and I thought before
> I start pulling out my hair I would ask how others have set up a rust
> development environment, maybe even with emacs integration? Perhaps even
> Doomemacs?
> 
> What's the guix way of doing things? Or should I just use rustup and
> leave it all outside of the guix system?
> 
> Thanks in advance,
> 
> Worni

Reply via email to