Skip to content

alven-shin/rustyaura.nix

Repository files navigation

rustyaura.nix

A formatter that wraps around rustfmt, prettierd (with tailwind prettier plugin), and leptosfmt. The formatter reads from stdin and outputs formatted code to stdout.

Usage

Configure your editor's formatter or rust-analyzer to use rustyaura. For example, in VS Code add the following to .vscode/settings.json.

{
  "rust-analyzer.rustfmt.overrideCommand": ["rustyaura"]
}

Alternatively, you can invoke rustyaura from the command line.

cat main.rs | rustyaura > main.rs

About

A formatter to make developing with Leptos more pleasant

Topics

Resources

License

Stars

Watchers

Forks