duktape-rs
duktape-rs copied to clipboard
Rust wrapper for Duktape, a lightweight, embedded JavaScript interpreter.
WORK IN PROGRESS.
A Rust wrapper for Duktape. Things to do before this is minimally useful:
- [x] Handle non-UTF-8 strings.
- [x] Call JavaScript functions by name.
- [x] Define functions.
- [x] Call specified Rust functions from JavaScript.
- [x] Return errors from Rust to JavaScript.
- [ ] Convert to use
Encodable
/Decodable
everywhere.- [x] Convert parameters to use
Encodable
. - [ ] Replace
Value
withserialize::Json
. - [ ] Convert return values to use
Decodable
.
- [x] Convert parameters to use
- [ ] Add nice macros.
- [ ] Provide macro for calling functions.
- [ ] Provide macro for defining functions.