aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-01-17 17:42:05 -0700
committerOndřej Čertík <ondrej@certik.us>2020-01-17 23:38:37 -0700
commit37303524fa85e75db315097a7c27e2564852af6e (patch)
tree20f67c80359f92d941541412407c29351e6aba40 /src/main.rs
parentad47216794bb0f87fd7676c724e3d6779142d983 (diff)
downloadfpm-37303524fa85e75db315097a7c27e2564852af6e.tar.gz
fpm-37303524fa85e75db315097a7c27e2564852af6e.zip
Parse fpm.toml
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
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<String> {
}
fn build() {
+ let value = std::fs::read_to_string("fpm.toml")
+ .unwrap()
+ .parse::<Value>().unwrap();
+ println!("TOML: {:?}", value);
let files = collect_source_files();
let mut files2: String = String::new();
for file in &files {