Commit Graph

6 Commits

Author SHA1 Message Date
Christine Caulfield
b98248d9a5 rust: tests return errors and don't hang
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2024-07-04 10:57:04 +02:00
Christine Caulfield
58d654261a rust: Improve Rust bindings
The big change here is that all API calls now take a &Handle
rather than making a copy. This, apart from being more sensible
and efficient, allows us to implment Drop on the handle so that
it will call _free() when it goes out of scope.

There's some jiggery-pokery with a clone flag in there now
because of callbacks that can return a valid handle, and we
want those to be Drop'ed sensibly.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2024-07-04 10:56:58 +02:00
Jan Friesse
b47c5197ea rust: Remove tests from check scripts
Rust test are equivalent of C tests (so interactive one) and not
automated tests, so it shouldn't be executed by make check.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
2023-05-23 08:47:18 +02:00
Christine Caulfield
f68a2d1c85 Rust: 'fix' clippys for Rust 1.67
This is clippy getting a bit above itself IMHO

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2023-01-27 17:16:48 +01:00
Christine Caulfield
846f3d13c6 rust: Make it work on FreeBSD
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2023-01-26 17:03:43 +01:00
Christine Caulfield
f34052d78e bindings: Add Rust bindings
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2023-01-26 17:03:36 +01:00