[libvirt] libvirt binding for Rust

Martin Kletzander mkletzan at redhat.com
Wed Jun 7 09:14:11 UTC 2017

On Tue, Jun 06, 2017 at 12:19:21PM +0200, Sahid Orentino Ferdjaoui wrote:
>I started a work on a libvirt binding for Rust [0]. Not all of the API
>is implemeted but I think it's now in a usable state.
>  https://docs.rs/crate/virt
>  https://github.com/sahid/libvirt-rs
>The code is licensed under LGPL-2.1, it's tested by a CI running
>libvirt 1.2.0, 2.5.0, 3.3.0. There are unit tests, integration tests
>and some examples to exercise the code (some parts are still not
>covered) I also have checked the code with valgrind to avoid any
>memory leaks.
>  https://travis-ci.org/sahid/libvirt-rs

This is nice, I am thinking of trying to add a module support for
modules written in Rust, but that's just a fun project.

Anyway, if I may give you an advice, it would be way nicer if some of
the bindings were automatically generated.  Libvirt provides all the
infomartion necessary in libvirt{,-qemu-lxc}.xml files for you to be
able to do this.  We already do this for the python bindings, for
example.  That way they automatically support trivial function additions
in newer libvirt versions.

>Do you think that we can consider it ready to be hosted by libvirt.org
>GIT server ? That could help to get new contributors also interested
>by Rust and improve the code and coverage of the API.
>libvir-list mailing list
>libvir-list at redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170607/8dcf769c/attachment-0001.sig>

More information about the libvir-list mailing list