pub fn describe(name: &str, text: &str) -> Result<Addon, String>Expand description
The script surface and the elements a descriptor’s text declares, for
the module name, without looking at any file it names.
This is how a module whose desktop half has nothing to offer but the answer “runs only in a browser” takes its functions from its own web half, read at the module’s compile time, so the two halves cannot drift.
§Errors
As read_web_half, less the checks on files.