luci

Define and read configuration file

2 unstable releases

0.2.0 Oct 22, 2024
0.1.0 Sep 9, 2024
Download history 58/week @ 2024-09-03 66/week @ 2024-09-10 11/week @ 2024-09-17 10/week @ 2024-09-24 8/week @ 2024-10-01 4/week @ 2024-10-08 3/week @ 2024-10-15 147/week @ 2024-10-22 1/week @ 2024-10-29 5/week @ 2024-11-05

159 downloads per month
Used in telegrax

Apache-2.0

7KB
129 lines

luci

Define and read configuration file. Support platforms where libc is available.

Quickstart

For a quickstart, see examples. For installation from package repository, see crates.io. For API references, see doc.rs.

Test

chmod 600 tests/data/*
cargo test

lib.rs:

Define and read configuration file.

A configuration file must not be: execute by owner; read, write or execute by other users; read, write or execute by other groups. That mean a configuration file may has the following modes: 400 or 600. Other than that, reading returns Error::Insecured.

Example

Dependencies

~4.5–6.5MB
~116K SLoC