Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a Nix package for formatting Rust code #4

Open
soywod opened this issue Sep 3, 2024 · 0 comments
Open

Make a Nix package for formatting Rust code #4

soywod opened this issue Sep 3, 2024 · 0 comments

Comments

@soywod
Copy link
Member

soywod commented Sep 3, 2024

Here the following rustfmt config Pimalaya needs:

group_imports = "StdExternalCrate"
imports_granularity = "Crate"
imports_layout = "Horizontal"
normalize_comments = true
normalize_doc_attributes = true
reorder_impl_items = true

Problem: these options are not stable yet, and requires nightly version of Rust, which is not compatible with the stable one the codebase needs).

Need to write down a Nix task that runs rustfmt with the following config on a nightly build of Rust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant