Skip to content

Write a procedural macro to replace the js! macro on nightly (without parsing the JavaScript) #6

Open
@koute

Description

@koute

The js! macro is truly a thing of terror, however we don't have much choice if we want to work on stable.

That said, it would we worthwhile to convert it to a nightly-only procedural macro to prepare for the future where procedural macros will be stabilized.

This will also help with the compile times, which are negatively impacted by the way the current js! macro is implemented.

  • Write a nightly-only js! procedural macro.
  • Add nightly optional feature to Cargo.toml and use the procedural js! only when that feature is switched on.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions