On Fri, Apr 25, 2025 at 6:33 AM Bruno Haible <br...@clisp.org> wrote:
>
> Nikolaos Chatzikonstantinou wrote:
> > > One problem I see with Rust is that currently it does not integrate well
> > > with the GNU Build system, in particular with VPATH builds (see [3] for
> > > an example integration). Any improvements on that front would be welcome.
> > >
> > > [3] 
> > > https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=tree;f=gettext-tools/examples/hello-rust;hb=HEAD
> >
> > What is the issue with VPATH builds?
>
> The issue is that 'cargo' mandates a certain directory layout of the
> package, that is incompatible with VPATH builds.

In the comments of configure.ac hello-rust claims to solve this issue
though, is that not enough? I noticed that you're the author of it, so
you must have something in mind.

> > I read the comments in
> > configure.ac of that link, it seems to copy certain files into the
> > build directory and then uses cargo. Would you rather if it used rustc
> > directly?
>
> How can a package not use 'cargo' if it needs some Rust libraries?

At least in my case of reimplementing m4 in Rust, I can probably do it
only using std Rust, and then it's easy to use the rustc compiler
directly avoiding cargo.

Regards,
Nikolaos Chatzikonstantinou

Reply via email to