Crate librarian

Source
Expand description

Librarian - a Rust crate for downloading and linking to non-rust libraries from app build scripts

Enums§

DownloadError
A type specifying an error that occured during downloading a file
DyLibNameFilter
Dynamic library filter used to specify which library files needs to be copied.
ExtractError
A type specifying an error that occured during an archive extraction

Functions§

add_link_search_path
Add a cargo link search path (only works strictly from a build script)
download_or_find_file
Download file if it doesn’t already exist, and return the file’s location.
extract_archive
Extract the archive to a folder and return the path to the extracted files. Zip/tar/tar.gz archives are supported. If extraction target path isn’t provided and the function is executed from a build script, the build script output folder is used.
install_dylibs
Install all dynamic libs from a directory to the target directory.