#service-configuration #linux #fragments #reproducible #directory #scan #os

liboverdrop

Configuration library, with directory overlaying and fragments dropins

4 releases

0.1.0 Feb 3, 2023
0.0.4 Feb 3, 2023
0.0.2 Jun 25, 2019
0.0.1 Jun 14, 2019

#493 in Filesystem

Download history 343/week @ 2024-07-21 465/week @ 2024-07-28 131/week @ 2024-08-04 165/week @ 2024-08-11 89/week @ 2024-08-18 100/week @ 2024-08-25 217/week @ 2024-09-01 140/week @ 2024-09-08 247/week @ 2024-09-15 174/week @ 2024-09-22 183/week @ 2024-09-29 165/week @ 2024-10-06 235/week @ 2024-10-13 398/week @ 2024-10-20 429/week @ 2024-10-27 446/week @ 2024-11-03

1,523 downloads per month
Used in 4 crates

MIT/Apache

14KB
161 lines

liboverdrop

crates.io Documentation Rust 1.56+

A simple Rust library to handle configuration fragments.

This crate provides helpers to scan configuration fragments on disk. The goal is to help in writing Linux services which are shipped as part of a Reproducible OS. Its name derives from overlays and dropins (base directories and configuration fragments).

The main entrypoint is scan. It scans for configuration fragments across multiple directories (with increasing priority), following these rules:

  • fragments are identified by unique filenames, lexicographically (e.g. 50-default-limits.conf).
  • in case of name duplication, last directory wins (e.g. /etc/svc/custom.conf can override /usr/lib/svc/custom.conf).
  • a fragment symlinked to /dev/null is used to ignore any previous fragment with the same filename.

License

Licensed under either of

at your option.

Dependencies

~87KB