Skip to main content

SUGAR

Constant SUGAR 

Source
pub const SUGAR: RustSugar;
Expand description

JavaScript desugar config: C-family braces with // and /* */ comments. newline_boundary is true so a top-level rust { ... } on its own line is recognized — rust { is never valid JS otherwise, so this only ever matches an intended FFI block. The desugar runs on raw source BEFORE lexing, so the block is replaced in place by a __rust_compile(...) expression statement.