bvanseg / ccake

A command line tool written in Rust and designed to be a modern build tool + package manager for C/C++ projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use `figment` crate instead of rolling your own configuration system

opened this issue · comments

Describe the solution you'd like
The functionality of src/lib/global/settings.rs would be better served by the figment crate.

Typical Rust-brain: "why do this in 80 lines when I can statically link another library that does more than I need?"

The 80 lines have to be good for that argument to work. This is 80 lines littered with expect() calls to define 2 configuration options.

feature/figment branch is ready to be pushed once added as a contributor

@wildernessems Feel free to open a PR with these changes. 👍🏻