eusb 1.0.0

Rust library for accessing USB devices.
1
2
3
4
5
6
7
8
9
10
use std::env;

fn main(){
    let target_env = env::var("CARGO_CFG_TARGET_ENV").unwrap();
    if target_env.as_str() == "ohos" {
        println!("cargo:rustc-cfg=ohos");
    }else {
        println!("cargo:rustc-cfg=libusb");
    }
}