legacy-paperclip icon indicating copy to clipboard operation
legacy-paperclip copied to clipboard

make everything rust-based

Open crcn opened this issue 4 years ago • 0 comments

Motivation for doing this is to ensure that Paperclip doesn't depend on Node.

Rust compilers should also be built in Rust. Bins can be downloaded into .paperclip/modules. Ideal syntax for this would be paperclip build --targets=react,ruby,python. Will also need to be considerate of compiler versions, so having the ability to specify that will be important ([email protected]). Bins can be downloaded directly from GH releases.

FFI for communicating with these sub-modules could be through IPC so that other languages are usable (such as node_modules). Rust compiler could also be pointed to use node_modules.

The work involved here will likely be to add another layer between the JS API and the Rust API.

Considerations

  • paperclip snapshot will still need to use node. Will likely need to move this into a separate module.

crcn avatar Dec 16 '21 14:12 crcn