-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
cargo fmt
cargo fmt
only updates files in places which belong to my project while leptosfmt
updates all files in the current directory, including the target folder.
Could leptosfmt somehow get the cargo fmt
managed files and only work on these?
time cargo fmt
real 0m0.229s
user 0m0.204s
sys 0m0.009s
time leptosfmt .
real 0m11.845s
user 0m2.924s
sys 0m4.534s
I see these attempts in updateing all sorts of .rs files:
.direnv/flake-inputs/vvk51jcqaq7a2sqsyyvs1svpnif1b4r0-source/web-app/src/explorer/mod.rs
...
target/debug/build/markup5ever-f2d1eca314a070f5/out/generated.rs
...
So when I remove target
and .direnv
I get:
time leptosfmt .
real 0m1.853s
user 0m2.236s
sys 0m3.059s
Which is still long but much more managable.
update
Just found this discussion: https://stackoverflow.com/questions/60989162/how-to-list-a-projects-source-files-using-the-cargo-crate
Metadata
Metadata
Assignees
Labels
No labels