prettify

Crates.ioprettify
lib.rsprettify
version0.3.0
sourcesrc
created_at2022-06-13 08:51:28.825178
updated_at2022-07-18 00:39:11.050264
descriptionAn extensible, language-agnostic code formatter based on Prettier written in Rust.
homepage
repository
max_upload_size
id604954
size55,995
Nick Mazuk (Nick-Mazuk)

documentation

README

Prettify

An extensible, language-agnostic code formatter based on Prettier written in Rust.

The goal of this library is to provide a simple, fast, and extensible way to format code. Instead of formatting code for any specific language, it's language agnostic by accepting an intermediate representation instead of an AST.

That way, you can format code at the speed of Rust.

Prettify is in beta. I believe it's feature complete and there are no bugs in this library. However, this library does not yet have 100% end-to-end test coverage, so it is possible there are bugs. Please file an issue if you find a bug.


This library is simply the core algorithm for Prettify. The actual parsing of each of different languages are in their own crates:

This library is distributed as it's own crate in case you wish to use it in your own project or for your own language. That way you can simply describe how your language should be formatted and let Prettify take care of the rest!

Commit count: 0

cargo fmt