Add an example of importing non-browser functions

Closes #208
This commit is contained in:
Alex Crichton
2018-05-23 12:06:49 -07:00
parent 4ddd93d75d
commit 151acf8eb3
12 changed files with 142 additions and 0 deletions

View File

@ -0,0 +1,5 @@
// For more comments about what's going on here, check out the `hello_world`
// example
const rust = import("./import_js");
rust.then(m => m.run());