Skip to main content

detect_target

Function detect_target 

Source
pub fn detect_target() -> Option<&'static str>
Expand description

Return the target tag used in release artifact names (darwin-arm64, linux-x64, windows-x64, …).

None means the current platform has no published release — the caller must surface a clean “unsupported platform” message rather than fall through to a 404 download.