Re: [Libguestfs] [libnbd PATCH] rust: Allow rust compilation without rustfmt

2023-08-10 Thread Richard W.M. Jones
On Thu, Aug 10, 2023 at 10:00:57AM -0500, Eric Blake wrote: > Our goal is that rustfmt should be an optional dependency. If > present, we use it to make generated .rs files look nicer in the > tarball created by 'make dist'. But if absent, things should still > compile just fine. > > However, th

[Libguestfs] [libnbd PATCH] rust: Allow rust compilation without rustfmt

2023-08-10 Thread Eric Blake
Our goal is that rustfmt should be an optional dependency. If present, we use it to make generated .rs files look nicer in the tarball created by 'make dist'. But if absent, things should still compile just fine. However, the configure test currently rejects cargo as unusable if 'cargo fmt' does