#info #distro

distro-info

Library for parsing Debian/Ubuntu distro-info-data

7 unstable releases

0.4.0 Jun 19, 2023
0.3.0 Jun 24, 2018
0.2.0 Jun 24, 2018
0.1.3 Jun 23, 2018

#668 in Text processing

Download history 93/week @ 2023-10-24 103/week @ 2023-10-31 145/week @ 2023-11-07 114/week @ 2023-11-14 265/week @ 2023-11-21 651/week @ 2023-11-28 235/week @ 2023-12-05 203/week @ 2023-12-12 591/week @ 2023-12-19 547/week @ 2023-12-26 167/week @ 2024-01-02 176/week @ 2024-01-09 207/week @ 2024-01-16 562/week @ 2024-01-23 207/week @ 2024-01-30 496/week @ 2024-02-06

1,495 downloads per month
Used in 6 crates (5 directly)

GPL-3.0 license

58KB
614 lines

distro-info-rs

A Rust library to parse Debian/Ubuntu distro-info-data, aiming to replicate the functionality of the C implementation in the distro-info package in Debian/Ubuntu.

Installation

With a working installation of cargo, run cargo install ubuntu-distro-info, then:

ubuntu-distro-info --help

Changelog Generation

Note that the clog-cli at https://github.com/OddBloke/clog-cli should be used for generating changelogs, pending acceptance of some changes upstream.


lib.rs:

Parse Debian and Ubuntu distro-info-data files and provide them as easy-to-consume Rust data structures.

Use UbuntuDistroInfo to access the Ubuntu data. (The Debian implementation has yet to happen.)

Dependencies

~3MB
~40K SLoC