braillify 2.0.1

Rust 기반 크로스플랫폼 한국어 점역 라이브러리
Documentation
#[cfg(windows)]
use embed_manifest::{embed_manifest, new_manifest};

fn main() {
    // Declare `tarpaulin_include` and `tarpaulin` as known cfg names so
    // `#[cfg(not(tarpaulin_include))]` (used to exclude interactive-only code from
    // coverage) and `#[cfg_attr(tarpaulin, inline(never))]` (used to prevent the
    // inliner from collapsing coverage attribution) do not trip `unexpected_cfgs`.
    println!("cargo::rustc-check-cfg=cfg(tarpaulin_include)");
    println!("cargo::rustc-check-cfg=cfg(tarpaulin)");

    // wasm 타겟으로 빌드할 때는 build.rs를 건너뜀
    let target = std::env::var("TARGET").unwrap_or_default();
    if !target.contains("wasm32") {
        #[cfg(windows)]
        {
            embed_manifest(new_manifest("Braillify.Braillify"))
                .expect("unable to embed manifest file");
        }
    }
}