Function
resource_dir
pub fn resource_dir() -> Option<PathBuf>The directory a packaged application’s bundled resources live in.
Returns None when the application is not running from a recognised
bundle or its executable path cannot be resolved.
let config = match kurogane::resource_dir() {
Some(resources) => resources.join("config.toml"),
None => std::path::PathBuf::from("config.toml"),
};