From: "Ludovic Courtès" <ludovic.courtes@inria.fr>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: guix-devel <guix-devel@gnu.org>, Nicolas Graves <ngraves@ngraves.fr>
Subject: How to build Rust packages
Date: Thu, 05 Dec 2024 11:13:07 +0100 [thread overview]
Message-ID: <87h67iv3nw.fsf_-_@inria.fr> (raw)
In-Reply-To: <Z1FRCoHq6oBdWNbO@3900XT> (Efraim Flashner's message of "Thu, 5 Dec 2024 09:06:50 +0200")
Hello,
Efraim Flashner <efraim@flashner.co.il> skribis:
> I still have a copy of the code on my machine but unfortunately it no
> longer builds due to the constant churn of rust packages.
>
> One thing I remember explicitly about it was that building end packages
> was faster than the current method, and that was before taking into
> account reusing build artifacts.
>
> https://notabug.org/maximed/cargoless-rust-experiments
Neat.
> Another idea which I'm not in love with is what Debian does. They grab
> all of the sources into one build environment and then build everything.
> It simplifies the dependency management of the sources but for us it
> would make it so that we can't touch anything in rust without causing a
> full rebuild of everything.
I believe this is also what Nixpkgs does, as discussed in this thread:
https://toot.aquilenet.fr/@civodul/113532478383900515
I’m not a fan either. But I think one of the main criteria here should
be long-term maintainability, which is influenced by internal design
issues and by how we design our relation with the external packaging
tool.
By internal issues I mean things like #:cargo-inputs instead of regular
inputs, which makes the whole thing hard to maintain and causes
friction. (See <https://issues.guix.gnu.org/53127>.)
As for the relation with Cargo and crates.io, the question is should we
map packages one-to-one? Is it worth it? If the answer is yes, do we
have the tools to maintain it in the long run.
Ludo’.
next prev parent reply other threads:[~2024-12-05 10:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 16:44 ‘cargo-build-system’ makes everything slow Ludovic Courtès
2024-12-02 19:24 ` Ricardo Wurmus
2024-12-05 7:06 ` Efraim Flashner
2024-12-05 10:13 ` Ludovic Courtès [this message]
2024-12-08 9:20 ` How to build Rust packages Efraim Flashner
2024-12-08 11:51 ` indieterminacy
2024-12-10 8:15 ` Ludovic Courtès
2024-12-05 11:07 ` ‘cargo-build-system’ makes everything slow Liliana Marie Prikler
2024-12-05 6:32 ` Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h67iv3nw.fsf_-_@inria.fr \
--to=ludovic.courtes@inria.fr \
--cc=guix-devel@gnu.org \
--cc=ngraves@ngraves.fr \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).