Skip to main content

extract_wasm_only_note

Function extract_wasm_only_note 

Source
fn extract_wasm_only_note(attr: &Attribute) -> Result<Option<String>, Error>
Expand description

Extracts the optional note from #[wasm_only(note = "custom note")]. Returns None for plain #[wasm_only], or Err for unknown attributes.