Skip to content

Commit

Permalink
Avoid rebuilding everything just to run rust tests (#9162)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex authored Jul 1, 2023
1 parent aaca248 commit 1ad21a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ def rust(session: nox.Session) -> None:
}
)

install(session, ".")
# Just install the dependencies needed for the Rust build.rs
# TODO: Ideally there'd be a pip flag to install just our dependencies,
# but not install us.
install(session, "cffi")

with session.chdir("src/rust/"):
session.run("cargo", "fmt", "--all", "--", "--check", external=True)
Expand Down

0 comments on commit 1ad21a5

Please sign in to comment.