Uses old Rust 2015
| 0.0.2 |
|
|---|---|
| 0.0.1 |
|
#12 in #javascript-interpreter
Used in duktape
4.5MB
82K
SLoC
Contains (ELF exe/lib, 13KB) src/generate
Low-level, unsafe wrapper arround the duktape API.
Note that some of this code is generated based on the specific compiler, operating system and processor, so various details may change depending on the system you're targeting. Do not assume that constants or integer sizes are the same everywhere!
We do not yet provide replacements for duktape function macros, but pull requests are very welcome.
WORK IN PROGRESS.
A Rust wrapper for Duktape. Things to do before this is minimally useful:
- Handle non-UTF-8 strings.
- Call JavaScript functions by name.
- Define functions.
- Call specified Rust functions from JavaScript.
- Return errors from Rust to JavaScript.
- Convert to use
Encodable/Decodableeverywhere.- Convert parameters to use
Encodable. - Replace
Valuewithserialize::Json. - Convert return values to use
Decodable.
- Convert parameters to use
- Add nice macros.
- Provide macro for calling functions.
- Provide macro for defining functions.