[Libguestfs] [PATCH libnbd 4/4] rust: Build the examples

2023-10-10 Thread Richard W.M. Jones
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 +++

[Libguestfs] [PATCH libnbd 3/4] rust: Write a custom translator from POD to rustdoc

2023-10-10 Thread Richard W.M. Jones
For more faithful translation of API documentation, write a custom translator from POD to rustdoc. --- generator/Rust.ml | 99 ++- 1 file changed, 80 insertions(+), 19 deletions(-) diff --git a/generator/Rust.ml b/generator/Rust.ml index

[Libguestfs] [PATCH libnbd 2/4] rust: Add overview documentation

2023-10-10 Thread Richard W.M. Jones
--- .gitignore | 1 + docs/libnbd.pod | 4 rust/Makefile.am | 13 +++ rust/libnbd-rust.pod | 53 4 files changed, 71 insertions(+) diff --git a/.gitignore b/.gitignore index 36bf8b60f8..0b1cf7646a 100644 ---

[Libguestfs] [PATCH libnbd 1/4] rust: Annotate 'endif' with corresponding label

2023-10-10 Thread Richard W.M. Jones
Although not required, it makes automake 'Makefile.am's easier to read. --- rust/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/Makefile.am b/rust/Makefile.am index 027097af9b..75738a0c30 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -117,6 +117,6

[Libguestfs] [PATCH libnbd 0/4] Miscellaneous Rust cleanups

2023-10-10 Thread Richard W.M. Jones
Add an overview libnbd-rust(3) man page pointing to the real documentation. This is like OCaml & Golang. When reviewing the real rustdocs I noticed they basically converted the man pages into plain text, resulting in lots of problems such as internal links not working, no `code` annotations,

Re: [Libguestfs] [nbdkit] Two POSIX questions for you ...

2023-10-10 Thread Richard W.M. Jones
On Tue, Oct 10, 2023 at 09:05:43AM +0200, Laszlo Ersek wrote: > On 10/9/23 16:51, Richard W.M. Jones wrote: > > > > So one thing we could do for this test is to require (for the test) > > that /bin/sh is bash, something like the patch below. I was only able > > to test this in the positive case.

Re: [Libguestfs] [nbdkit] Two POSIX questions for you ...

2023-10-10 Thread Laszlo Ersek
On 10/9/23 16:51, Richard W.M. Jones wrote: > > So one thing we could do for this test is to require (for the test) > that /bin/sh is bash, something like the patch below. I was only able > to test this in the positive case. > > diff --git a/tests/test-log-script-info.sh