qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH 00/11] rust: improved integration with cargo


From: Paolo Bonzini
Subject: Re: [RFC PATCH 00/11] rust: improved integration with cargo
Date: Thu, 14 Nov 2024 14:11:25 +0100

On Thu, Nov 14, 2024 at 2:07 PM Alex Bennée <alex.bennee@linaro.org> wrote:
> > First, while it is currently possible to run cargo on the rust/ directory,
> > it has the issue that the bindings.rs must be placed by hand in
> > the build directory.  Therefore, this series starts by allowing
> > cargo to "just work" when run in a "meson devenv" environment:
> >
> >     meson devenv -w ../rust cargo clippy --tests
> >     meson devenv -w ../rust cargo fmt
>
> Is this meant to be the rust source root, or the root of the rust
> builddir:
>
> $ meson devenv ../../rust

rust/ in the source directory.  You also need to run "meson devenv"
from the root of the build directory.

In practice you can just use "make clippy" or similar.

> ERROR: Build data file './meson-private/build.dat' references functions or 
> classes that don't exist. This probably means that it was generated with an 
> old version of meson. Try running from the source directory meson setup . 
> --wipe
> 🕙13:05:22 alex@draig:qemu.git/builds/rust  on  review/rust-cargo-rfc [$!?] 
> [🔴 ERROR]
> $ meson devenv rust

Your meson-private/ directory is stale.  Any "make" or "ninja" invocation will
fix it.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]