rustify
rustify copied to clipboard
Rust WebAssembly transform for Browserify
Currently we only support passing `i32` integers — great for math, but having more options would be great! We should probably look into [rust-experiments](https://github.com/killercup/wasm-experiments) and add some of the things...
Currently if you require `rustify` for use in Node, it'll do nothing. By using `lib/rustify` we can make it behave similarly go Sheetify & Glslify.
With `sheetify` we can import CSS from npm: ```js var sheetify = require('sheetify') sheetify('tachyons') ``` It would be cool if `rustify` allowed to do the same, but from Cargo: ```js...
We definitely need more recapitulatory documentation about the why/what for newcomers :)
I was thinking: perhaps it would make sense to register modules directly? E.g. turn this: ```js var rust = require('rustify') var wasm = rust` #[no_mangle] pub fn add_one(x: i32) ->...