pub fn bin(relative_path: impl AsRef<Path>) -> PathBuf
Expand description
Gets a path relative to the package binaries.
- In Wasm returns
./
, as in the relative URL. - In all other platforms returns
std::env::current_exe().parent()
.
ยงPanics
Panics if std::env::current_exe
returns an error or has no parent directory.