From 086ff7801a73464b06a9629ff5dc0df84a5e8e52 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 19 Oct 2018 04:11:54 +0200 Subject: config: Add a function to read a config file (WIP) A new function that will read a TOML config file. Doesn't currently access the filesystem. This commit is mostly supporting code to allow that to work. * Add the 'toml' crate * `parse_args()`: Take a mutable `Config` and return that config instead of creating a new one. The recipe will now be to read the config from a file first and then pass that config to this function to be updated. * Modify `c_parse_args()` to take a `*Config` and mirror the new method signature of `parse_args()` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 300cc66..d5af695 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ extern crate objc; #[macro_use] extern crate serde_derive; extern crate stderrlog; +extern crate toml; extern crate xdg; mod autopilot_internal; -- cgit v1.2.3