mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
rust: build: add "make clippy", "make rustfmt", "make rustdoc"
Abstract common invocations of "cargo", that do not require copying the generated bindgen file or setting up MESON_BUILD_ROOT. In the future these could also do completely without cargo and invoke the underlying programs directly. Reviewed-by: Junjie Mao <junjie.mao@hotmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
2f9eec8f72
commit
cab1d0bceb
3 changed files with 35 additions and 6 deletions
|
@ -20,8 +20,13 @@ fn main() -> Result<()> {
|
|||
let file = Path::new(&file);
|
||||
if !Path::new(&file).exists() {
|
||||
panic!(concat!(
|
||||
"No generated C bindings found! If you want to run `cargo`, start a subshell\n",
|
||||
"with `meson devenv`, or point MESON_BUILD_ROOT to the top of the build tree."
|
||||
"\n",
|
||||
" No generated C bindings found! Maybe you wanted one of\n",
|
||||
" `make clippy`, `make rustfmt`, `make rustdoc`?\n",
|
||||
"\n",
|
||||
" For other uses of `cargo`, start a subshell with\n",
|
||||
" `pyvenv/bin/meson devenv`, or point MESON_BUILD_ROOT to\n",
|
||||
" the top of the build tree."
|
||||
));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue