oak
oak copied to clipboard
New example: rustfmt
Create a new example that runs the rustfmt formatter in an Oak Node, and a sample client that sends a string containing a snippet of Rust code and gets back its formatted version.
It looks like rustfmt can't be compiled for a webassembly target as is. Some of its dependencies (i.e. syntex_errors#0.59.1) use features that are not implemented for webassembly.
https://github.com/rust-lang/rust/issues/48304
Confirmed on rust 1.36.0, 1.35.0.