uasm 1.0.5+2.57

A library to build the UASM compiler, for usage in build scripts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![doc = include_str!("../readme.md")]

/// The path to the built `uasm` executable.
pub const UASM_PATH: &str = env!("UASM_PATH");

#[cfg(test)]
mod tests {
    use std::error::Error;

    use super::*;

    #[test]
    fn run_uasm() -> Result<(),Box<dyn Error>> {
        let status = std::process::Command::new(UASM_PATH).arg("-h").status()?;
        assert!(status.success(),"uasm returned with non-zero exit code: {}",status.code().unwrap());
        Ok(())
    }
}