[Libguestfs] [PATCH] Add Rust bindings

Pino Toscano ptoscano at redhat.com
Mon Jul 8 08:03:22 UTC 2019


On Friday, 5 July 2019 06:28:12 CEST Hiroyuki Katsura wrote:
> > Have you decided whether we need to commit the generated files
> > (Cargo.toml, Cargo.lock)?  It looks like in this series those files
> > are still included and not added to .gitignore.
> 
> I'm sorry I forgot adding Cargo.lock to .gitignore. I'll add it to
> .gitignore. However, I think Cargo.toml should be staged. This is because
> this is a file managed by hands. It contains dependencies, versions,
> editions, crate name. It can be generated by shellscript which dumps such
> information. However, I think it may be not preferable.

Hmm, according to this official FAQ
https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries
the Cargo.lock file ought to be shipped only for binaries, and not for
libraries (like the libguestfs binding).

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20190708/5dee2c0b/attachment.sig>


More information about the Libguestfs mailing list