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

2022-04-05 Thread Ludovic Courtès
Maxime Devos skribis: > Maxime Devos schreef op do 31-03-2022 om 22:06 [+0200]: >> 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 dependenci

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

2022-04-02 Thread Hartmut Goebel
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 at. It c

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

2022-04-02 Thread Hartmut Goebel
Am 01.04.22 um 12:08 schrieb Maxime Devos: Do you know a ‘real’ Rust applications with few transitive dependencies (say, 3 or so) with preferably few rust source files? For my tests I used „roxmltree“, and by searching I just discovered https://crates.io/crates/hello_exercism. HTH -- Regard

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

2022-04-02 Thread Maxime Devos
Maxime Devos schreef op do 31-03-2022 om 22:06 [+0200]: > 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 > ...)?

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

2022-04-01 Thread Maxime Devos
Ludovic Courtès schreef op vr 01-04-2022 om 11:10 [+0200]: > I guess the whole question is whether that technique can be made to work > for the vast majority of Rust packages.  I’d suggest working in that > direction: writing a build system as a first step, using it in all the > Rust packages, and

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

2022-04-01 Thread Maxime Devos
Ludovic Courtès schreef op vr 01-04-2022 om 11:10 [+0200]: > Overall, I’m afraid Rust packaging is getting out of hands and we’re all > looking elsewhere.  For example, that Rust packages live in their own > separate world means there’s no tooling available, leading to poor QA, a > proliferation of

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

2022-04-01 Thread Ludovic Courtès
Hi, Maxime Devos skribis: > I invite you to take a look at > . > It contains a minimal rust library (libhello) and a minimal 'hello > world'-style application that uses 'libhello'. > > To simulate how Guix compiles C software (but here app

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

2022-04-01 Thread Brendan Tildesley
Recently I did the bevy (game engine) hello world tutorial[1]. To facilitate less slow iteration time when developing, it supports dynamic linking, disabling some optimizations, and using the lld linker for fast linking, although using lld failed for me. When running cargo build, only your pro