Attribute Macro perseus::browser

source · []
#[browser]
Expand description

Marks the annotated code as only to be run in the browser. This is the opposite of (and mutually exclusive with) #[engine]. This resolves to a target-gate that makes the annotated code run only on targets that are wasm32.