soname

Function soname 

Source
pub fn soname(libs_dir: &Path, lib: &str) -> Result<String>
Expand description

Returns the SONAME of lib in libs_dir.

When the library file exists, readelf -d is used to extract the SONAME from the binary. When only a versioned file exists (e.g. libz.so.1.2.13 without libz.so), the versioned filename is returned directly.

ยงErrors

Returns an error if readelf fails or the SONAME cannot be determined.