fn target(&self) -> Result<&str> {
        Ok(match self {
            Self::WasmBindgen => {
                if cfg!(target_os = "windows") {
                    "pc-windows-msvc"
                } else if cfg!(target_os = "macos") {
                    "apple-darwin"
                } else if cfg!(target_os = "linux") {
                    "unknown-linux-musl"
                } else {
                    bail!("unsupported OS")
                }
            }
            Self::WasmOpt => {
                if cfg!(target_os = "windows") {
                    "windows"
                } else if cfg!(target_os = "macos") {
                    "macos"
                } else if cfg!(target_os = "linux") {
                    "linux"
                } else {
                    bail!("unsupported OS")
                }
            }
        })
    }
/// Target for the current OS as part of the download URL. Can fail as there might be no release
/// for the current platform.
Target for the current OS as part of the download URL. Can fail as there might be no release
for the current platform.
Target for the current OS as part of the download URL . Can fail as there might be no release for the current platform .
fn target(&self) -> Result<&str> {
        Ok(match self {
            Self::WasmBindgen => {
                if cfg!(target_os = "windows") {
                    "pc-windows-msvc"
                } else if cfg!(target_os = "macos") {
                    "apple-darwin"
                } else if cfg!(target_os = "linux") {
                    "unknown-linux-musl"
                } else {
                    bail!("unsupported OS")
                }
            }
            Self::WasmOpt => {
                if cfg!(target_os = "windows") {
                    "windows"
                } else if cfg!(target_os = "macos") {
                    "macos"
                } else if cfg!(target_os = "linux") {
                    "linux"
                } else {
                    bail!("unsupported OS")
                }
            }
        })
    }
fn target ( & self ) -> Result < & str > { Ok ( match self { Self :: WasmBindgen => { if cfg ! ( target_os " " ) { " " } else if cfg ! ( target_os " " ) { " " } else if cfg ! ( target_os " " ) { " " } else { bail ! ( " " ) } } Self :: WasmOpt => { if cfg ! ( target_os " " ) { " " } else if cfg ! ( target_os " " ) { " " } else if cfg ! ( target_os " " ) { " " } else { bail ! ( " " ) } } } ) }
Target for the current OS as part of the download URL.
Target for the current OS as part of the download URL .
&self