Duolith docs

Errors E0200 to E0299

E0211 Rust module not built for native

Message the Rust module module is not built for iOS and Android yet

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

A Rust module in modules/ is built to WebAssembly and loaded by the web runtime (decision 0078). The native targets cannot load it yet, so a native build that imports one stops instead of shipping an import that cannot run on a phone.

How to fix it

Build the app for the web, or leave the module out of the app's native version.

In a terminal

duolith explain E0211

Mentioned in