# rgconf
`rgconf` is the parameter-resolution and provenance library for the
OmniPotentRPC stack. It turns layered Cap'n Proto configuration defaults,
files, environment variables, command-line options, and runtime edits into one
validated configuration. Every resolved value retains its origin, and
configuration snapshots can be recorded in an RFC 9162 transparency log.
The project provides a Rust library, the `rgconf` command-line program, a C
ABI, and Python bindings.
## Install
Install the 0.2.1 CLI from crates.io and the matching Python binding from PyPI.
```console
cargo install --locked rgconf-cli --version 0.2.1
python -m pip install "rgconf==0.2.1"
```
For a development checkout, use `cargo install --locked --path crates/rgconf-cli`
and `python -m pip install ./python` from the repository root. The Rust
library crate lives in `crates/rgconf-core`.
To build the C library and install its header and pkg-config metadata:
```console
meson setup build --buildtype=release --prefix="$HOME/.local"
meson install -C build
```
## Quick start
Create `job.ini`:
```ini
[Optimizer]
converged_force = 0.03
```
Resolve it using the legacy EON profile:
```console
rgconf resolve --profile eonLegacyIni --ini job.ini
```
The equivalent Python call is:
```python
from rgconf import resolve_ini
resolved = resolve_ini(
"eonLegacyIni",
"""[Optimizer]
converged_force = 0.03
""",
"job.ini",
)
print(resolved)
```
## Documentation
The [user guide](https://omnipotentrpc.github.io/rgconf/) covers resolution,
schema extension, deprecation, parameters, precedence, and upstream
compatibility. The [Rust API reference](https://omnipotentrpc.github.io/rgconf/api/rgconf/)
is built from the same release tag as the manual. See the
[changelog](https://github.com/OmniPotentRPC/rgconf/blob/main/CHANGELOG.md) for
release notes.
The public C interface is declared in [`include/rgconf.h`](include/rgconf.h).
## License
MIT. See [LICENSE](LICENSE).