Hasty Briefsbeta

Boa: A standard-conforming embeddable JavaScript engine written in Rust

17 days ago
  • #JavaScript
  • #Rust
  • #ECMAScript
  • Boa is a JavaScript lexer, parser, and interpreter written in Rust, supporting over 90% of the latest ECMAScript specification.
  • It offers a live WASM playground and a CLI tool (boa_cli) for testing.
  • Boa maintains several crates including boa_ast, boa_engine, boa_gc, and boa_parser, among others.
  • Deprecated crates include Boa and boa_unicode.
  • To use Boa, add boa_engine to Cargo.toml and follow the provided example in main.rs.
  • Boa provides detailed documentation and conformance test results for the ECMAScript specification.
  • Contributing guidelines are available in CONTRIBUTING.md, requiring Rust and an editor like VSCode.
  • Debugging information is available in debugging.md.
  • Special instructions for WASM targets include enabling the js feature flag and setting specific RUSTFLAGS.
  • Boa can be run from the CLI with various options for dumping AST, tracing, and more.
  • Benchmarking is supported with scripts from v8's benchmarks, with results available online.
  • Profiling and changelog details are provided for developers.
  • Community support is available via Matrix and Discord.
  • Licensed under the Unlicense or MIT licenses.