extern crate failure;
extern crate sass_rs;
extern crate url;
extern crate webapp;
use failure::Fallible;
use url::Url;
use webapp::{config::Config, CONFIG_FILENAME};
pub fn main() -> Fallible<()> {
// Prepeare UIkit and build the complete style
// Prepare the API URL paths
prepare_api()?;
Ok(())
}
fn prepare_api() -> Fallible<()> {
let config = Config::from_file(&format!("{}", CONFIG_FILENAME))?;
let url = Url::parse(&config.server.url)?;
println!("cargo:rustc-env=API_URL={}", url);
Ok(())
}