• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #![deny(warnings)]
2 
3 use std::env;
4 
main()5 fn main() {
6     let target = env::var("TARGET").expect("TARGET was not set");
7     if target.contains("windows") {
8         // for BCryptGenRandom
9         println!("cargo:rustc-link-lib=bcrypt");
10     } else if target.contains("apple-ios") {
11         // for SecRandomCopyBytes and kSecRandomDefault
12         println!("cargo:rustc-link-lib=framework=Security");
13     }
14 }
15