| Crates.io | alpm-mtree |
| lib.rs | alpm-mtree |
| version | 0.3.2 |
| created_at | 2025-02-28 18:15:42.198688+00 |
| updated_at | 2026-01-11 14:43:29.79931+00 |
| description | Library and command line interface for the parsing and writing of ALPM-MTREE files |
| homepage | https://alpm.archlinux.page |
| repository | https://gitlab.archlinux.org/archlinux/alpm/alpm |
| max_upload_size | |
| id | 1573048 |
| size | 248,269 |
A library and command line interface for the parsing and writing of ALPM-MTREE files used in Arch Linux Package Management (ALPM).
use alpm_mtree::mtree::v2::parse_mtree_v2;
let data = r#"#mtree
/set mode=644 uid=0 gid=0 type=file
./some_file time=1700000000.0 size=1337 sha256digest=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
./some_link type=link link=some_file time=1700000000.0
./some_dir type=dir time=1700000000.0
"#.to_string();
assert!(parse_mtree_v2(data).is_ok());
Validate an .MTREE file.
alpm-mtree validate path/to/file
Parse an .MTREE file and output its contents as structured data.
alpm-mtree format ~/.cache/alpm/testing/packages/core/argon2-20190702-6-x86_64/.MTREE --output-format json --pretty
cli adds dependencies required for the alpm-mtree command line interface.creation adds library support for the creation of ALPM-MTREE files (enabled by default)._winnow-debug enables the winnow/debug feature, which shows the exact parsing process of winnow.Please refer to the contribution guidelines to learn how to contribute to this project.
This project can be used under the terms of the Apache-2.0 or MIT. Contributions to this project, unless noted otherwise, are automatically licensed under the terms of both of those licenses.