go-mtree v0.7.0 tagged
@jcm
FYI: Example use-case of #mtree on #FreeBSD
https://cgit.freebsd.org/src/tree/libexec/rc/rc.d/var#n45
This function is called in the script if /var is empty (i.e., fresh installation, volatile such as mfsvar).
Note that this script is installed into /etc/rc.d/ on base system installation.
And mtree file used is as below (installed into /etc/mtree)
https://cgit.freebsd.org/src/tree/etc/mtree/BSD.var.dist
With version 0.2.0 the #library and #CLI alpm-mtree offers new features that allow validating a directory with #MTREE data, as well as creating #MTREE data from a directory.
Additionally, we have improved the usability of the parser and the documentation.
The #crate provides integration with the #ALPMMTREE file format which is used in #ALPM based #package files. 📦
https://crates.io/crates/alpm-mtree/0.2.0
For details refer to the #changelog https://alpm.archlinux.page/alpm-mtree/CHANGELOG.html#020---2025-06-16
We have just released the first version of the alpm-mtree #crate 🦀 🎉
https://crates.io/crates/alpm-mtree/0.1.0
This library and #CLI allows parsing and validation of #MTREE files, used in Arch Linux Package Management.
Many thanks to @orhun @Nukesor @hko for their engagement and @sovtechfund for supporting this important work for our ecosystem!