It's worth checking that the examples actually build, so we don't get any regressions. --- rust/Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/rust/Makefile.am b/rust/Makefile.am index 5c73512c87..a7700d69bd 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -90,7 +90,8 @@ EXTRA_DIST = \ if HAVE_RUST all-local: libnbd-sys/libnbd_version target/debug/liblibnbd.rlib \ - target/doc/libnbd/index.html + target/doc/libnbd/index.html \ + target/debug/examples/get-size libnbd-sys/libnbd_version: Makefile rm -f libnbd-sys/libnbd_version.t @@ -103,6 +104,10 @@ target/debug/liblibnbd.rlib: $(source_files) target/doc/libnbd/index.html: $(source_files) $(abs_top_builddir)/run $(CARGO) doc +# This will actually build all the examples: +target/debug/examples/get-size: $(source_files) + $(abs_top_builddir)/run $(CARGO) build --examples + if HAVE_POD man_MANS = libnbd-rust.3 -- 2.41.0 _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://listman.redhat.com/mailman/listinfo/libguestfs