tauri-plugin-blew 0.1.0

Tauri plugin for the blew BLE library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    tauri_plugin::Builder::new(&[])
        .android_path("android")
        .build();

    let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
    let mobile = target_os == "ios" || target_os == "android";
    println!("cargo:rustc-check-cfg=cfg(desktop)");
    println!("cargo:rustc-check-cfg=cfg(mobile)");
    if mobile {
        println!("cargo:rustc-cfg=mobile");
    } else {
        println!("cargo:rustc-cfg=desktop");
    }
}