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

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

#4 in #service-configuration

Download history 60/week @ 2023-12-05 185/week @ 2023-12-12 57/week @ 2023-12-19 62/week @ 2023-12-26 68/week @ 2024-01-02 47/week @ 2024-01-09 185/week @ 2024-01-16 101/week @ 2024-01-23 138/week @ 2024-01-30 211/week @ 2024-02-06 146/week @ 2024-02-13 129/week @ 2024-02-20 263/week @ 2024-02-27 335/week @ 2024-03-05 315/week @ 2024-03-12 241/week @ 2024-03-19

1,185 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