wasmerio/wasmer · error

target os + arch combination not supported: {os}, {arch}

Error message

target os + arch combination not supported: {os}, {arch}

What it means

Error "target os + arch combination not supported: {os}, {arch}" thrown in wasmerio/wasmer.

Source

Thrown at lib/api/build.rs:24

        path::PathBuf,
        sync::{LazyLock, Mutex},
    };

    const WEE8_RELEASE_VERSION: &str = "11.9.7";

    let (asset_name, platform_name) = match (
        env::var("CARGO_CFG_TARGET_OS").unwrap().as_str(),
        env::var("CARGO_CFG_TARGET_ARCH").unwrap().as_str(),
        env::var("CARGO_CFG_TARGET_ENV")
            .unwrap_or_default()
            .as_str(),
    ) {
        ("macos", "aarch64", _) => ("v8-darwin-aarch64.tar.xz", "darwin-aarch64"),
        ("linux", "x86_64", "gnu") => ("v8-linux-amd64.tar.xz", "linux-amd64"),
        ("linux", "x86_64", "musl") => ("v8-linux-musl.tar.xz", "linux-musl"),
        ("windows", "x86_64", _) => ("v8-windows-amd64.tar.xz", "windows-amd64"),
        ("android", "aarch64", _) => ("v8-android-arm64.tar.xz", "android-arm64"),
        (os, arch, _) => panic!("target os + arch combination not supported: {os}, {arch}"),
    };

    let out_dir = env::var("OUT_DIR").unwrap();
    let out_path = PathBuf::from(&out_dir);
    let crate_root = env::var("CARGO_MANIFEST_DIR").unwrap();
    let v8_header_path = PathBuf::from(&crate_root).join("third-party").join("wee8");
    let cache_dir = out_path
        .join("../../../../")
        .join("wee8-artifacts")
        .join(WEE8_RELEASE_VERSION)
        .join(platform_name);
    let archive_path = cache_dir.join(asset_name);
    let v8_lib_dir = cache_dir.join("lib");
    let v8_lib_path = v8_lib_dir.join(if cfg!(target_os = "windows") {
        "v8.lib"
    } else {
        "libv8.a"
    });

View on GitHub (pinned to 8c4b9ee9d3)

When it happens

Trigger: Thrown at lib/api/build.rs:24 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01). Data as JSON: /api/errors/77ce994c0217c2db. Report an issue: GitHub.