Releases: andrewdavidmackenzie/libproc-rs
0.12.0 using bindgen with minimal dependencies
Rust code is now generated from libproc.h using bindgen, and dependencies/features of bindgen have been reduced to minimize build time.
Bug fix ahead of new rustc versions
Newer versions of rustc (>= 1.46.0 it seems) were breaking the library in CI/CD.
Upon investigation it turns out I was not treating string correctly for FFI calls, and something has changed in newer versions of rustc that caused it to fail (memory layout would be my guess).
This releae fixes that bug, so when people upgrade to rustc 1.46.0 or later they should not see any test failures.
Add listpidspath()
Added a missing call from the original Mac OS X 10.5 implementation
Implement kmesgbuffer on macos and linux
Fixed the implementation of the kmesgbuffer() call on linux and then macos.
- It's a simple string interface at the moment. I thought it could have a different interface with a struct and vector of lines, lines parsed into fields etc, but didn't bother doing that in first implementation as I'm not sure anyone will even use this. Submit an enhancement request issue (or PR!) if you want that....
Doc updates
Added deployment of build code docs to GH pages on build of master from travis
Added some linux commands and equivalents
This release supports compiling for Linux (doen on CI) and it adds a couple of commands for linux (linux only for now) and adds Linux equivalents for name()
and pidpath()
methods.
Added new methods
Added new methods (documented in README) from contributor @dalance as well as some internal file re-orgs, and small test improvements.
0.4.0 With new methods added
New release with contributed functionality!
PR #13 That optimizes am_root() method
PR #14 That implements PIDInfo for ThreadInfo
PR #16 That adds listpidinfo and ListThreads/ListFDs
PR #17 That adds pidfdinfo and SocketFDInfo
Merits a minor version bump I thought (watch-out, I'm not very good at SemVer, so if this is WRONG, please let me know via a PR! :-) )
It is already published on crates.io
0.3.2 with a memory usage optimization
Includes a memory usage optimization contributed by @ivxvm
0.3.1 with a small bug fix
Fixes a bug in listpids function
Removes a couple of compile warnings