FuelLabs/sway

`forc fmt` should format manifest fields with rules similar to Cargo style guide

Open

#687 opened on Jan 22, 2022

View on GitHub
 (1 comment) (1 reaction) (0 assignees)Rust (5,421 forks)batch import
enhancementforcformattergood first issue

Repository metrics

Stars
 (61,702 stars)
PR merge metrics
 (Avg merge 22h 6m) (16 merged PRs in 30d)

Description

Currently, the manifest formatter simply orders all fields alphabetically. This should be changed to order them in a similar way to the Cargo style guide. This ordering should also be documented in The Sway Book.

https://github.com/rust-dev-tools/fmt-rfcs/blob/215291ef72823ae3a6adfad9b26334bed6707a13/guide/cargo.md

Contributor guide