Function cargo_test_support::paths::get_lib_filename
source · pub fn get_lib_filename(name: &str, kind: &str) -> String
Expand description
Get the filename for a library.
kind
should be one of:
lib
rlib
staticlib
dylib
proc-macro
§Examples
get_lib_filename("foo", "dylib");
would return:
- macOS:
"libfoo.dylib"
- Windows:
"foo.dll"
- Unix:
"libfoo.so"