Crate boa_macros

Source
Expand description

Macros for the Boa JavaScript engine.

§About Boa

Boa is an open-source, experimental ECMAScript Engine written in Rust for lexing, parsing and executing ECMAScript/JavaScript. Currently, Boa supports some of the language. More information can be viewed at Boa’s website.

Try out the most recent release with Boa’s live demo playground.

§Boa Crates

Macros§

embed_module_inner
Implementation of the inner iterator of the embed_module! macro. All arguments are required.
js_str
Convert a utf8 string literal to a JsString
utf16
Construct a utf-16 array literal from a utf-8 str literal.

Derive Macros§

Finalize
Derive the Finalize trait.
JsData
Derive the JsData trait.
Trace
Derive the Trace trait.
TryFromJs
Derives the TryFromJs trait, with the #[boa()] attribute.
TryIntoJs
Derives the TryIntoJs trait, with the #[boa()] attribute.