Commit Graph

12 Commits

Author SHA1 Message Date
coolreader18
231e3f2f16 Export PyEvalOptions in typescript defs 2018-12-28 21:57:41 -06:00
coolreader18
d7fdc5c177 Fix typescript hack 2018-12-28 14:42:43 -06:00
coolreader18
36997e12d9 Comment out WB's TS definitions using a hack 2018-12-28 14:35:45 -06:00
coolreader18
1d5df4130a Add doc comments and typescript custom section 2018-12-27 22:31:15 -06:00
coolreader18
b2772804f2 Add README and manifest fields for the WASM library 2018-12-27 21:06:59 -06:00
coolreader18
8303743aab Remove RustPyFunc trait, just use Fn(..) everywhere 2018-12-27 11:50:14 -06:00
coolreader18
94d6a91873 Fix js_to_py with JS undefined 2018-12-26 13:21:29 -06:00
coolreader18
e0959b9384 Implement error conversion for js_to_py 2018-12-26 11:21:45 -06:00
coolreader18
132930ec82 Allow passing closures from JS to python via vars 2018-12-26 01:59:15 -06:00
coolreader18
d1d958516d Change the instances of Fn(..) -> PyResult to a RustPyFunc trait alias 2018-12-24 15:45:45 -06:00
coolreader18
2ea9dca40c Add example, change some stuff in the demo to align with example 2018-12-24 15:28:49 -06:00
coolreader18
ca30ebcf5d Genericize the wasm lib to not be specifically for the demo
This included changing RustObjectKind::RustFunction.function to be
a `Box<Fn()>` instead of a `fn()` to support closures.
2018-12-24 15:28:49 -06:00