Registry / build-tool / rust-format

rust-format

JSON →
library0.3.4rscratesunverified

A Rust source code formatting crate with a unified interface for string, file, and TokenStream input.

# Cargo.toml [dependencies] rust-format = "0.3.4"
INSTALL
IMPORT
SIG · RUST-FORMAT
R
rust-format
build-toolrustv0.3.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Formatter
use rust_format::Formatter;

Format a Rust code string using rust-format.

use rust_format::Formatter; fn main() { let formatted = Formatter::new().format_str("fn main() {}").unwrap(); println!("{}", formatted); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
rust-format — cargo add rust-format · libregistry