[][src]Function librarian::install_dylibs

pub fn install_dylibs<T: AsRef<Path> + ?Sized>(
    from: &T,
    filter: Option<DyLibNameFilter<'_>>,
    target_dir: Option<&Path>
) -> Result<()>

Install all dynamic libs from a directory to the target directory.

The dylib argument can be used to specify the criteria a file needs to match to be installed (See DyLibNameFilter docs). Default behavior is to install every library with an extension that matches the target platform's dylib extension. target_dir can be left empty to attempt to automatically find the target executable directory.

To just install all of the dynamic libraries from a folder, do:

librarian::install_dylibs(path_to_dylib_folder, None, None)?;
// The application should now have all the dynamic libraries in the same folder as the executable