hcl 1.0.2

Implementing cryptography on high level
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn main() {
    if cfg!(all(target_os = "macos", target_arch = "aarch64")) {
        println!("cargo::rustc-link-search=c/lib/macos_aarch64");
        println!("cargo::rustc-link-lib=static=sodium");
    } else if cfg!(all(target_os = "windows", target_arch = "x86_64")) {
        println!("cargo::rustc-link-search=c/lib/windows_x86_64");
        println!("cargo::rustc-link-lib=static=sodium");
    } else if cfg!(all(
        target_os = "linux",
        target_env = "gnu",
        target_arch = "x86_64"
    )) {
        println!("cargo::rustc-link-search=c/lib/linux_gnu_x86_64");
        println!("cargo::rustc-link-lib=static=sodium");
    } else {
        panic!("Can't setup sodium for this platform");
    }
}