pub const fn detect_host() -> Result<(Os, Arch), UnsupportedHost>Expand description
The operating system and architecture this binary was compiled for.
§Errors
UnsupportedHost::UndocumentedPlatform when the operating system or the
architecture is outside GitHub’s documented matrix entirely — a FreeBSD or
RISC-V build, for instance. That is a build that should not exist rather
than a host that should be warned about, so it is an error and not a
warning.