test-rust 510 B

123456789101112131415161718192021
  1. #!/bin/bash -e
  2. #
  3. # Run the rust code checks (a.k.a. check-rust-tools-nightly)
  4. #
  5. # Copyright (c) 2025 Linaro Ltd
  6. #
  7. # Authors:
  8. # Alex Bennée <alex.bennee@linaro.org>
  9. #
  10. # This work is licensed under the terms of the GNU GPL, version 2
  11. # or (at your option) any later version. See the COPYING file in
  12. # the top-level directory.
  13. . common.rc
  14. cd "$BUILD_DIR"
  15. configure_qemu --disable-user --disable-docs --enable-rust
  16. pyvenv/bin/meson devenv -w $QEMU_SRC/rust ${CARGO-cargo} fmt --check
  17. make clippy
  18. make rustdoc