oak icon indicating copy to clipboard operation
oak copied to clipboard

New example: rustfmt

Open tiziano88 opened this issue 7 years ago • 1 comments

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.

tiziano88 avatar Jul 11 '19 22:07 tiziano88

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.

hansman avatar Jul 16 '19 08:07 hansman