1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{fs};
use std::path::{PathBuf};
use df_cache::Cache;

fn main() {
    let dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
    let dir = dir.join("config");
    let config_path = dir.join("cache.json");

    let conf = fs::read_to_string(config_path.to_str().unwrap()).unwrap();
    let conf = json::parse(conf.as_str().clone()).unwrap();
    let _cache = Cache::connect(conf);
}