Expand description
Librarian - a Rust crate for downloading and linking to non-rust libraries from app build scripts
Enums§
- Download
Error - A type specifying an error that occured during downloading a file
- DyLib
Name Filter - Dynamic library filter used to specify which library files needs to be copied.
- Extract
Error - 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.