Registry / other / boa-engine

boa-engine

JSON →
library0.21.1rscratesunverified

Boa is a JavaScript lexer, parser and compiler written in Rust, currently supporting some of the language.

# Cargo.toml [dependencies] boa_engine = "0.21.1"
INSTALL
IMPORT
SIG · BOA-ENGINE
B
boa-engine
otherrustv0.21.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Context
use boa_engine::Context;

Evaluate a JavaScript expression using Boa's engine.

use boa_engine::Context; fn main() { let mut context = Context::new(); let result = context.eval("1 + 2").unwrap(); println!("{}", result.to_string()); }
Debug
Known issues
gotchaBoa does not yet fully implement ECMAScript; some features may be missing or behave differently.
fix
Check the Boa compatibility table for supported features.
affects: >=0.0.0
Upgrade
Version history
0.21.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Meta
1
OpenAI (training)
1
Resources
boa-engine — cargo add boa-engine · libregistry