https://pantsbuild.org/ logo
#development
Title
# development
c

curved-television-6568

12/27/2021, 6:21 PM
I know this has been brought up before, but is it expected to take minutes to recompile the rust engine after just a small change to single file? (like rule_graph/src/builder.rs for instance)
h

hundreds-father-404

12/27/2021, 6:21 PM
Rust compilation can be quite slow, especially the linking stage. Use
MODE=debug
when you're iterating on Rust to make it much faster. Also
./cargo check
The newest Rust release added support for custom "profiles" like release vs. devel etc. I still want to experiment with that so that we can make Rust compilation less painful for Python devs using
MODE=debug
is great when iterating on Rust, but the binary is too slow to be useful when iterating on Python. I think there's a middle ground we can have for Python development
c

curved-television-6568

12/27/2021, 6:29 PM
OK, cool. I’m not doing much on the rust side, atm, so no biggie.. but it strikes me as a pain point, if I were to spend considerable amount on it..
h

hundreds-father-404

12/27/2021, 6:32 PM
doing rust dev with
MODE=debug
+
./cargo check
should be pretty zippy. And we can't improve that much more ourselves other than Rust itself getting faster it's Python devs waiting for Rust changes that frustrates me
w

witty-crayon-22786

12/27/2021, 6:48 PM
yea, both
./cargo check
and
MODE=debug
are really important while iterating on the rust code.