On 2026-01-08 21:25, Ludovic Courtès wrote: >> >> I tried that and it works. imported-modules compile with warnings >> though, I don't know if it's tolerable or not. > > It’s definitely tolerable; we use this strategy (autoloading modules for > optional features) in a number of build-side modules.
OK. I'll provide some patches for rust and pyproject, but it will take some time to land in master so that we can remove most avoidable (with-extensions (list (pyproject/cargo-guile-json)) ...) > I’ve read it now, and I even commented. :-) Commented back, I still tend to think it's worth it, even though it would require quite some time (modules and imported-modules are still not known to the <build-system> object) and work to get a working prototype to even argue about pros and cons. I know Maxim Cournoyer and Simon Tournier were interested in the discussion about that, but we never reached a point where everyone shared a clear view of the pros and cons of both options. I'm stuck in the exact same manner on https://codeberg.org/guix/guix/pulls/4253, but I'm not good enough with keeping up with my email to properly send and follow a discussion on guix-devel. I'll see if I can do anything to improve that, but I get too much email to manage it properly. > I don’t have a good idea though! > > Ludo’. > > -- Best regards, Nicolas Graves
