Branch: refs/heads/main Home: https://github.com/kronosnet/kronosnet Commit: 8304a3bb4a9320a7f20fb3f843e408c2e1db4e54 https://github.com/kronosnet/kronosnet/commit/8304a3bb4a9320a7f20fb3f843e408... Author: Christine Caulfield ccaulfie@redhat.com Date: 2024-01-08 (Mon, 08 Jan 2024)
Changed paths: M libknet/bindings/rust/src/knet_bindings.rs M libknet/bindings/rust/tests/src/bin/knet-test.rs M libknet/bindings/rust/tests/src/bin/set_plugin_path.c M libnozzle/bindings/rust/src/nozzle_bindings.rs M libnozzle/bindings/rust/tests/src/bin/nozzle-test.rs
Log Message: ----------- 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.
Commit: 0c4279cdb17a790b43dee5a4d0b0d36fe38efc15 https://github.com/kronosnet/kronosnet/commit/0c4279cdb17a790b43dee5a4d0b0d3... Author: Fabio M. Di Nitto fdinitto@redhat.com Date: 2024-01-10 (Wed, 10 Jan 2024)
Changed paths: M libknet/bindings/rust/src/knet_bindings.rs M libknet/bindings/rust/tests/src/bin/knet-test.rs M libknet/bindings/rust/tests/src/bin/set_plugin_path.c M libnozzle/bindings/rust/src/nozzle_bindings.rs M libnozzle/bindings/rust/tests/src/bin/nozzle-test.rs
Log Message: ----------- Merge pull request #425 from kronosnet/new_improved_rust_api
rust: Improve Rust bindings
Compare: https://github.com/kronosnet/kronosnet/compare/54b14bd470d7...0c4279cdb17a