summaryrefslogtreecommitdiff
path: root/rustfmt.toml
AgeCommit message (Collapse)Author
2025-02-12system/rust: Set imports_granularity rustfmt option to Module Chris Suter
This matches the Fuchsia style. See https://fxbug.dev/340943530 for rationale. I've also reformatted all Rust files under system/rust with this style as there seemed to be some inconsistencies. Fix: 396241824 Test: m com.android.btservices Flag: EXEMPT refactor only Change-Id: I74425bfbe98a402fa5f9fd5f1746a00b9767a321
2022-04-20Add note about why `rustfmt.toml` is not a symlink Martin Geisler
Other AOSP repositories use a symlink back to `soong/scripts/rustfmt.toml`, but this repositories needs to be self-contained. Test: comment change only Bug: 229825251 Change-Id: Ia050733eaa2a4fe6aec2024b5c4fd5bb1d131327
2022-02-24Decouple rustfmt.toml from soong Sonny Sasaka
With Floss, Flouride/GD is made available outside Android and it's easier for non-Android development to use rustfmt without soong dependency. Bug: 221242765 Test: Call rustfmt on any rust file in packages/modules/Bluetooth Change-Id: Ic883987500c8129e53e42de3b5250f2126d6f048
2021-11-06Fix symlink for rustfmt. Baligh Uddin
BUG: 196026708 Test: TH Change-Id: Iafb67909688f0c026c4f3c243968128ec1f71e5f
2021-05-17Revert "Add default rustfmt.toml" Abhishek Pandit-Subedi
This reverts commit f57514ffa9cd36bb838415e241695a966a82df94. This change broke rustfmt being invoked directly. Could not parse TOML: expected a table key, found a period at line 1 column 1 Test: Ran rustfmt, cargo-fmt and repo upload Change-Id: I6caa143c49b88634ef04c7d1f822572737128521
2021-05-07Add default rustfmt.toml Hansong Zhang
Test: run rustfmt Change-Id: I69b10b53cf339ea3d2769b1a524a82b777a0770d
2020-12-14Use canonical version of rustfmt ThiƩbaud Weksteen
Enable rustfmt repohook. Test: repo upload Change-Id: I9836672a755021c16b9f609cea147664f92bd6e5