[Rpm-maint] [rpm-software-management/rpm] Rust bindings for rpmlib (#429)

Jeff Johnson notifications at github.com
Fri Apr 13 19:54:27 UTC 2018


Re use of rust's regular Iterator type

Since you are programming with rust+ffi there are some games you may be able to play with ref counting in C to adjust the lifetime of headers returned from an Iterator.

What I am suggesting (but I know nothing serious about rust) is running an array of header references during an iteration using *Link() that have *Free() called when the rust Iterator goes out of scope.

No idea whether that is possible, and be forewarned: a full serial iteration over Packages will load 100+ Mytes.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/429#issuecomment-381244609
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20180413/0a6eca42/attachment.html>


More information about the Rpm-maint mailing list