{"record":{"id":"347d09cc61b5bfbd","repo":"wasmerio/wasmer","slug":"no-backends-support-the-required-features-for-the","errorCode":null,"errorMessage":"No backends support the required features for the Wasm module. Feel free to open an issue at https://github.com/wasmerio/wasmer/issues","messagePattern":"No backends support the required features for the Wasm module\\. Feel free to open an issue at https://github\\.com/wasmerio/wasmer/issues","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"lib/cli/src/backend.rs","lineNumber":328,"sourceCode":"\n        if filtered_backends.is_empty() {\n            let enabled_backends = BackendType::enabled();\n            if backends.len() == 1 && enabled_backends.len() > 1 {\n                // If the user has chosen an specific backend, we can suggest to use another one\n                let filtered_backends =\n                    Self::filter_backends_by_features(enabled_backends, required_features, target);\n                let extra_text: String = if !filtered_backends.is_empty() {\n                    format!(\". You can use --{} instead\", filtered_backends[0])\n                } else {\n                    \"\".to_string()\n                };\n                bail!(\n                    \"The {} backend does not support the required features for the Wasm module{}\",\n                    backends[0],\n                    extra_text\n                );\n            } else {\n                bail!(\n                    \"No backends support the required features for the Wasm module. Feel free to open an issue at https://github.com/wasmerio/wasmer/issues\"\n                );\n            }\n        }\n        filtered_backends.first().unwrap().get_engine(target, self)\n    }\n\n    #[cfg(feature = \"compiler\")]\n    /// Get the enabled Wasm features.\n    pub fn get_features(&self, default_features: &Features) -> Result<Features> {\n        if self.features.all {\n            return Ok(Features::all());\n        }\n\n        let mut result = default_features.clone();\n        if !self.features.disable_threads {\n            result.threads(true);\n        }","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/backend.rs#L310-L346","documentation":"When filtering the available backends by the module's required features leaves an empty list, no compiler in this binary can run the module, so get_engine_for_features bails with this message. It points users to file an issue because it usually means a feature/backend support gap in Wasmer itself.","triggerScenarios":"get_engine_for_module encounters a module whose required feature set (from its compile-time features) intersects with no installed backend, on a build where filter_backends_by_features returns [].","commonSituations":"Minimal/feature-restricted Wasmer builds (e.g. singlepass-only) running modules that need unsupported proposals; very new Wasm proposals before backend support; stripped custom binaries.","solutions":["Install/use a Wasmer build with all backends (singlepass, cranelift, llvm features enabled)","Downgrade the module's required features (recompile the wasm with fewer/older features)","File an issue at https://github.com/wasmerio/wasmer/issues if a shipped backend should support the features"],"exampleFix":"// before\ncargo install wasmer --no-default-features --features singlepass\n// after\ncargo install wasmer --features singlepass,cranelift,llvm","handlingStrategy":"validation","validationCode":"let required = module.features();\nif BackendType::all().filter(|b| b.supports_features(&required)).count() == 0 {\n    return Err(\"no installed backend supports this module's features; rebuild wasmer with all compilers\");\n}","typeGuard":null,"tryCatchPattern":"match result {\n    Err(e) if e.to_string().contains(\"No backends support the required features\") => {\n        eprintln!(\"rebuild wasmer with singlepass+cranelift+llvm\");\n        Err(e)\n    }\n    other => other?,\n}","preventionTips":["Ship full-featured Wasmer builds (all three compilers) for general-purpose use","Pre-check module feature requirements against your binary's backends","Keep Wasmer updated to gain backend support for new proposals"],"tags":["cli","backend","wasm-features","compiler","build-flags"],"backgroundTag":"unsupported-backend-feature","analyzedSha":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}