#![feature(test)]
#![feature(unicode)]
#![feature(vec_remove_item)]
+#![feature(entry_and_modify)]
extern crate arena;
extern crate getopts;
pub fn main() {
const STACK_SIZE: usize = 32_000_000; // 32MB
- env_logger::init().unwrap();
+ env_logger::init();
let res = std::thread::Builder::new().stack_size(STACK_SIZE).spawn(move || {
get_args().map(|args| main_args(&args)).unwrap_or(1)
}).unwrap().join().unwrap_or(101);
"check if given theme is valid",
"FILES")
}),
+ unstable("resource-suffix", |o| {
+ o.optopt("",
+ "resource-suffix",
+ "suffix to add to CSS and JavaScript files, e.g. \"main.css\" will become \
+ \"main-suffix.css\"",
+ "PATH")
+ }),
]
}
let display_warnings = matches.opt_present("display-warnings");
let linker = matches.opt_str("linker").map(PathBuf::from);
let sort_modules_alphabetically = !matches.opt_present("sort-modules-by-appearance");
+ let resource_suffix = matches.opt_str("resource-suffix");
match (should_test, markdown_input) {
(true, true) => {
Some("html") | None => {
html::render::run(krate, &external_html, playground_url,
output.unwrap_or(PathBuf::from("doc")),
+ resource_suffix.unwrap_or(String::new()),
passes.into_iter().collect(),
css_file_extension,
renderinfo,
let (mut krate, renderinfo) =
core::run_core(paths, cfgs, externs, Input::File(cratefile), triple, maybe_sysroot,
- display_warnings, force_unstable_if_unmarked);
+ display_warnings, crate_name.clone(),
+ force_unstable_if_unmarked);
info!("finished with rustc");