]>
git.proxmox.com Git - rustc.git/blob - src/vendor/mdbook/build.rs
3 use std
::process
::Command
;
9 if let Ok(_
) = env
::var("CARGO_FEATURE_REGENERATE_CSS") {
11 // Compile stylus stylesheet to css
12 let manifest_dir
= env
::var("CARGO_MANIFEST_DIR").unwrap();
14 let theme_dir
= Path
::new(&manifest_dir
).join("src/theme/");
15 let stylus_dir
= theme_dir
.join("stylus/book.styl");
17 if !Command
::new("stylus")
18 .arg(format
!("{}", stylus_dir
.to_str().unwrap()))
20 .arg(format
!("{}", theme_dir
.to_str().unwrap()))
25 panic
!("Stylus encoutered an error");