1 use openssl_src; 2 use std::path::PathBuf; 3 get_openssl(_target: &str) -> (Vec<PathBuf>, PathBuf)4pub fn get_openssl(_target: &str) -> (Vec<PathBuf>, PathBuf) { 5 let artifacts = openssl_src::Build::new().build(); 6 println!("cargo:vendored=1"); 7 println!( 8 "cargo:root={}", 9 artifacts.lib_dir().parent().unwrap().display() 10 ); 11 12 ( 13 vec![artifacts.lib_dir().to_path_buf()], 14 artifacts.include_dir().to_path_buf(), 15 ) 16 } 17