pub fn libcurl_version_info() -> Vec<String> {
    let version = curl::Version::get();
    let mut versions = vec![format!("libcurl/{}", version.version())];
    if let Some(s) = version.ssl_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.libz_version() {
        versions.push(format!("zlib/{}", s.to_string()));
    }
    if let Some(s) = version.brotli_version() {
        versions.push(format!("brotli/{}", s.to_string()));
    }
    if let Some(s) = version.zstd_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.ares_version() {
        versions.push(format!("c-ares/{}", s.to_string()));
    }
    if let Some(s) = version.libidn_version() {
        versions.push(format!("libidn2/{}", s.to_string()));
    }
    if let Some(s) = version.iconv_version_num() {
        if s != 0 {
            versions.push(format!("iconv/{}", s.to_string()));
        }
    }
    if let Some(s) = version.libssh_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.nghttp2_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.quic_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.hyper_version() {
        versions.push(format!("hyper/{}", s.to_string()));
    }
    if let Some(s) = version.gsasl_version() {
        versions.push(format!("libgsal/{}", s.to_string()));
    }
    versions
}
///
/// get libcurl version
///
// Output should be similar to curl
// https://github.com/curl/curl/blob/master/lib/version.c
//
// Remarks:
// 1) you must make the data returned from libcurl uniform: prefix, string version
// 2) can not find libpsl info in curl crate
//


1) you must make the data returned from libcurl uniform: prefix, string version
2) can not find libpsl info in curl crate
1 ) you must make the data returned from libcurl uniform : prefix string version 2 ) can not find libpsl info in curl crate
pub fn libcurl_version_info() -> Vec<String> {
    let version = curl::Version::get();
    let mut versions = vec![format!("libcurl/{}", version.version())];
    if let Some(s) = version.ssl_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.libz_version() {
        versions.push(format!("zlib/{}", s.to_string()));
    }
    if let Some(s) = version.brotli_version() {
        versions.push(format!("brotli/{}", s.to_string()));
    }
    if let Some(s) = version.zstd_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.ares_version() {
        versions.push(format!("c-ares/{}", s.to_string()));
    }
    if let Some(s) = version.libidn_version() {
        versions.push(format!("libidn2/{}", s.to_string()));
    }
    if let Some(s) = version.iconv_version_num() {
        if s != 0 {
            versions.push(format!("iconv/{}", s.to_string()));
        }
    }
    if let Some(s) = version.libssh_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.nghttp2_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.quic_version() {
        versions.push(s.to_string());
    }
    if let Some(s) = version.hyper_version() {
        versions.push(format!("hyper/{}", s.to_string()));
    }
    if let Some(s) = version.gsasl_version() {
        versions.push(format!("libgsal/{}", s.to_string()));
    }
    versions
}
pub fn libcurl_version_info ( ) -> Vec < String > { let version = curl :: Version :: get ( ) ; let mut versions = vec ! [ format ( " " version version ( ) ) ] ; if let Some ( s ) = version . ssl_version ( ) { versions . push ( s . to_string ( ) ) ; } if let Some ( s ) = version . libz_version ( ) { versions . push ( format ! ( " " s to_string ( ) ) ) ; } if let Some ( s ) = version . brotli_version ( ) { versions . push ( format ! ( " " s to_string ( ) ) ) ; } if let Some ( s ) = version . zstd_version ( ) { versions . push ( s . to_string ( ) ) ; } if let Some ( s ) = version . ares_version ( ) { versions . push ( format ! ( " " s to_string ( ) ) ) ; } if let Some ( s ) = version . libidn_version ( ) { versions . push ( format ! ( " " s to_string ( ) ) ) ; } if let Some ( s ) = version . iconv_version_num ( ) { if s != 0 { versions . push ( format ! ( " " s to_string ( ) ) ) ; } } if let Some ( s ) = version . libssh_version ( ) { versions . push ( s . to_string ( ) ) ; } if let Some ( s ) = version . nghttp2_version ( ) { versions . push ( s . to_string ( ) ) ; } if let Some ( s ) = version . quic_version ( ) { versions . push ( s . to_string ( ) ) ; } if let Some ( s ) = version . hyper_version ( ) { versions . push ( format ! ( " " s to_string ( ) ) ) ; } if let Some ( s ) = version . gsasl_version ( ) { versions . push ( format ! ( " " s to_string ( ) ) ) ; } versions }
get libcurl version
Output should be similar to curl
https://github.com/curl/curl/blob/master/lib/version.c
get libcurl version Output should be similar to curl https : // github . com / curl / curl / blob / master / lib / version . c