[#1] Adjusted the library to use the new server.
Removed the scribe and weave requirements. Scribe was only being used in the build, so it was switched to print statements. Weave was being used for error, but it was switched over to the Rust core and std error versions.
This commit is contained in:
17
build.rs
17
build.rs
@ -1,6 +1,3 @@
|
||||
use scribe::{error, warn};
|
||||
|
||||
|
||||
use std::env;
|
||||
use std::ffi::OsString;
|
||||
use std::path::PathBuf;
|
||||
@ -58,7 +55,7 @@ fn determine_output_dir() -> PathBuf
|
||||
Err(error) =>
|
||||
{
|
||||
// Then just default to "".
|
||||
warn!("{}", error);
|
||||
println!("WARN: {}", error);
|
||||
output_dir = PathBuf::new();
|
||||
}
|
||||
}
|
||||
@ -137,13 +134,15 @@ fn compile(src_files: &[PathBuf], output_name: &str) -> PathBuf
|
||||
{
|
||||
if output.status.success() == false
|
||||
{
|
||||
error!("{:?}", output);
|
||||
println!("ERROR: {:?}", output);
|
||||
panic!();
|
||||
}
|
||||
}
|
||||
|
||||
Err(error) =>
|
||||
{
|
||||
error!("{}", error);
|
||||
println!("ERROR: {}", error);
|
||||
panic!();
|
||||
}
|
||||
}
|
||||
|
||||
@ -164,13 +163,15 @@ fn run(executable: PathBuf, args: &[PathBuf])
|
||||
{
|
||||
if output.status.success() == false
|
||||
{
|
||||
error!("{:?}", output);
|
||||
println!("ERROR: {:?}", output);
|
||||
panic!();
|
||||
}
|
||||
}
|
||||
|
||||
Err(error) =>
|
||||
{
|
||||
error!("{}", error);
|
||||
println!("ERROR: {}", error);
|
||||
panic!();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user