From 37303524fa85e75db315097a7c27e2564852af6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Fri, 17 Jan 2020 17:42:05 -0700 Subject: Parse fpm.toml --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 35dde13..3fa2917 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use structopt::StructOpt; +use toml::Value; #[derive(Debug, StructOpt)] struct Cli { @@ -25,6 +26,10 @@ fn collect_source_files() -> Vec { } fn build() { + let value = std::fs::read_to_string("fpm.toml") + .unwrap() + .parse::().unwrap(); + println!("TOML: {:?}", value); let files = collect_source_files(); let mut files2: String = String::new(); for file in &files { -- cgit v1.2.3