Skip to content

Commit

Permalink
chore: update .gitignore to exclude *_expanded.rs files
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-herlemont committed May 9, 2024
1 parent 69e4b8a commit 2bfea43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -4,7 +4,7 @@ target/
node_modules/
package-lock.json
package.json
*.expanded.rs
*_expanded.rs

# Related to [Why do binaries have Cargo.lock in version control, but not libraries?](https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries)
Cargo.lock
Expand Down
7 changes: 5 additions & 2 deletions justfile
Expand Up @@ -77,6 +77,9 @@ bench:
CRITERION_DEBUG=1 cargo bench; \
start ./target/criterion/report/index.html

expand test_file_name:
expand test_file_name="util":
rm -f {{test_file_name}}.expanded.rs; \
cargo expand --test {{test_file_name}} | save --raw {{test_file_name}}.expanded.rs
cargo expand --test {{test_file_name}} | save -f --raw src/{{test_file_name}}_expanded.rs

expand_clean:
rm -f src/*_expanded.rs

0 comments on commit 2bfea43

Please sign in to comment.