[WIP] rust-build-system proposition

  • Open
  • quality assurance status badge
Details
3 participants
  • jgart
  • Maxime Devos
  • Nicolas Graves
Owner
unassigned
Submitted by
Nicolas Graves
Severity
normal
N
N
Nicolas Graves wrote on 27 Jul 2023 18:42
(address . guix-patches@gnu.org)
87pm4de277.fsf@ngraves.fr
This series of patches is my current work in progress to include the
antioxidant-build-system from Maxime Devos into Guix.

I have a lot of rust packages covered, but still a few more to work on,
this series is not really here for packages for now, but to get some
feedback to improve / make the build-system play nicely with Guix.

There are already quite a few changes that I made to the original
antioxidant-build-system, and I tried to record them in commits so that
Maxime or anyone interested can take a look and see / discuss some
choices I made.

--
Best regards,
Nicolas Graves
M
J
J
jgart wrote 4 days ago
[WIP] rust-build-system proposition
(address . 64904@debbugs.gnu.org)
87pll9sn76.fsf@dismail.de
Hi,

What's the status on this ticket?

--
all the best,
jgart
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOx1/GeNrtgwPWyyppSqitHe23TUFAmdyPI0ACgkQpSqitHe2
3TV+IRAAjNEN3jj2Kegni74xlTZwiw3CXP7i7g6zrNPnZYlyTNx3077ed6+hKms0
eFIlEgkoSP8YC1gHzTQqwcAY70pUupFgZ3xRHfTDaA7adROXgj7sEhlwWU094S3L
yHS9IfFHNJfzTMmrtN3BUZO4wxvoAaVeQNTNgbHeJk9JIPyQR2ySbBm9pX9D6Ok+
FYQwSoBgWwb07T/ymWKy6WNT0SFteBJDBnsjoIoRoCiMYGKpTF7K5HSZph/iQVuC
xfZG7HwvVIcwpgHQ1HDgcKa5ZjhykdLtIfrqgMH0XOSgKix9Anr5FmMr1CUf5gaZ
PqwLckFdpWD+UjxqPlRXSv4pyESTF2kM4znOtXtWEkc9jUMu4841Z/uh/j4F8fW2
l4mJuEvZelybRKSsWFhUHNutQ53su0I+smzL1xles53B9UiuyZAYdUfeiPp0kvDO
HfdLG2A4oLyav/R/vHM9ATo1Qf/DZh1pbdpHZZR6f15ACxBVulTbuaMov5NU6HGp
t+4keftSV/LHldZ9G1VhPvNwun0PMvbHIk7qmacuXU22n2AbAy4SzYY0dMllediJ
gEGLM77tpbTQok/5qXJKYeByrrwfMN17OSRLN7ww3E8f3zvWkJfuH4efMvPGtffL
aY2+kNHx56K3n/IWVpKVqw4XhyEeRjAgLo3CBLdRQ7eui734bWU=
=TQSG
-----END PGP SIGNATURE-----

N
N
ngraves wrote 4 days ago
877c7h4fua.fsf@ngraves.fr
On 2024-12-30 00:24, jgart via Guix-patches via wrote:

Toggle quote (4 lines)
> Hi,
>
> What's the status on this ticket?

I most likely lost the data with my recent computer issues, such a shame
that was a lot of work (1-2 months part-time).

As a record if someone wants to follow through, what I did from memory,
it worked well:
- moved antioxidant-build-system to rust-build-system
- rust-build-system was actually a rust-workspace-build-system, with the
logic that a single package was a workspace of one package
- I moved most of the state from antioxidant-build-system to arguments,
was finishing that, there was only 3-5 arguments left.
- for workspaces, an output was a package
- for some crates-gtk.scm or crates-crypto.scm, the whole file could be
summarized into one or two packages with multiple outputs. (This should
be a more general conversation, Go and Node have the same workspace
logic that we should be able to build on, and avoid managing in Guix was
can be done through workspaces. That was one of my blockers, not having
inputs on whether was I was doing would eventually be adopted due to
this).

The huge upside from all this was that our cargo-build-system rebuilds
everything for every package, while the declarative nature of guix
allows to avoid that. Compiling all rust packages with
rust-build-system was actually doable on a good computer in less than a
day. Not possible with cargo-build-system.

--
Best regards,
Nicolas Graves
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 64904@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 64904
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch