u16cstr 0.6.0

A macro for creating c-style u16 wide strings at compile time.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{error::Error, path::PathBuf, process::Command, str::FromStr};

#[test]
fn basic_in_another_crate() -> Result<(), Box<dyn Error>> {
    let crate_name = "test-crate";
    let crate_path = PathBuf::from_str("tests")?
        .join(crate_name)
        .canonicalize()?;

    Command::new("cargo")
        .arg("test")
        .current_dir(&crate_path)
        .spawn()?
        .wait()?;

    Ok(())
}