From 1ad21a58e6f186149738009938f518b20b2677a5 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 1 Jul 2023 09:22:18 -0400 Subject: [PATCH] Avoid rebuilding everything just to run rust tests (#9162) --- noxfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index 86a6a68b61a8..717c06726aa0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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)