[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling rust things without cargo (super WIP POC)

From: Hartmut Goebel
Subject: Re: Compiling rust things without cargo (super WIP POC)
Date: Sat, 2 Apr 2022 17:19:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0

Am 31.03.22 um 22:06 schrieb Maxime Devos:
In my experiments, it looks like the rust compiler actually_does_
support static libraries, though perhaps cargo doesn't.

AFAIU this assumption is correct.

I invite you to take a look 
It contains a minimal rust library (libhello) and a minimal 'hello
world'-style application that uses 'libhello'.
As a next step, maybe I could try writing a Guix package definition for libhello
and hello-oxygen, gradually making things more complicated (macros, transitive
dependencies, some non-toy Rust dependencies, a Guix build system ...)?

Here is my challenge :-) <>: different dependencies per feature, os, target-arch and target-os as well as passing on features to dependencies.

Hartmut Goebel

| Hartmut Goebel          |               |
| | compilers which you thought are impossible |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]