[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
- Re: [RFC PATCH 08/11] rust: build: establish a baseline of lints across all crates, (continued)
- [RFC PATCH 09/11] rust: build: add "make clippy", "make rustfmt", Paolo Bonzini, 2024/11/08
- [RFC PATCH 10/11] rust: fix doc test syntax, Paolo Bonzini, 2024/11/08
- [RFC PATCH 11/11] rust: ci: add job that runs Rust tools, Paolo Bonzini, 2024/11/08
- Re: [RFC PATCH 00/11] rust: improved integration with cargo, Alex Bennée, 2024/11/14
- Re: [RFC PATCH 00/11] rust: improved integration with cargo,
Paolo Bonzini <=
- Re: [RFC PATCH 00/11] rust: improved integration with cargo, Alex Bennée, 2024/11/14
- Re: [RFC PATCH 00/11] rust: improved integration with cargo, Paolo Bonzini, 2024/11/14
- Re: [RFC PATCH 00/11] rust: improved integration with cargo, Alex Bennée, 2024/11/14
- Re: [RFC PATCH 00/11] rust: improved integration with cargo, Paolo Bonzini, 2024/11/14
- Re: [RFC PATCH 00/11] rust: improved integration with cargo, Alex Bennée, 2024/11/14