prettyplease

Community

Deterministic Rust AST formatting without rustfmt

Authoryankeeinlondon
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Formats generated Rust code by turning syn::File ASTs into readable source using prettyplease::unparse, avoiding external rustfmt tooling and ensuring stable output for code generated at build time or by macros.

Core Features & Use Cases

  • Library-based formatting: format in-process without spawning a formatter binary.
  • AST-focused: operates on syn::File and handles common generated-code scenarios (proc macros, build scripts, code generators).
  • Deterministic output: yields consistent formatting suitable for reproducible code generation.

Quick Start

Use prettyplease to format a syn::File AST into readable Rust source.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prettyplease
Download link: https://github.com/yankeeinlondon/rusty-biscuit/archive/main.zip#prettyplease

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.