blob: c7593160144b9b52bf83e99ef8d53a10b480868b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::env;
use std::fs;
use std::path::Path;
fn main() {
let out_dir = env::var_os("OUT_DIR").unwrap();
let dest_path = Path::new(&out_dir).join("style.css");
fs::write(
&dest_path,
grass::from_string(include_str!("data/style.scss").to_string(), &grass::Options::default()).unwrap()
).unwrap();
println!("cargo:rerun-if-changed=data/style.css");
}
|