pkgsrc-rs - A Rust interface to pkg_install packages and database
This is being developed alongside pm, a Rust implementation of a pkgsrc package manager. Anything that handles lower level pkg_install routines will be placed here.
Usage
use pkg_match;
// simple match
assert_eq!;
assert_eq!;
// dewey comparisons
assert_eq!;
assert_eq!;
// alternate matches
assert_eq!;
assert_eq!;
assert_eq!;
// globs
assert_eq!;
assert_eq!;
assert_eq!;
Status
- pkg_match() is implemented and verified to be correct against a large input of matches using the following procedure:
Generate list of dependency matches.
| |
Generate list of package names
Implement the following algorithm in both C and Rust and compare output
while ; do
while ; do
done
done
As an added bonus, the C version took 55 seconds to generate 158,916,879 matches, whilst the Rust version took 42 seconds.