libp2p / libp2p/rust-libp2p

feat(.toml): add uniform formatting

Open
#4,043 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.6k
Forks
1.3k
Avg merge
8h 47m
Merged PRs (30d)
19

Description

Description

Currently, the formatting of cargo.toml files is not unified and there are no tests in the CI on this. It might be good to use something that would enforce a unified formatting for all .toml files (like in the rest of the Rust code).

Motivation

When changing dependency elements in a PR, there may be a chance that we carelessly modify an inappropriate space or line break, which causes additional changes to be reviewed on the PR and a lack of clarity.

Uniform formatting would avoid these problems.

Current Implementation

Are you planning to do it yourself in a pull request?

Yes / No / Maybe.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing cargo.toml and the repository's existing Rust formatting checks, then identify how .toml files are currently handled in CI. Determine the appropriate formatting tool and integration points without changing dependency content. Done means all relevant TOML files have a consistent format and CI checks it.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.