fast-nail-55400
05/10/2024, 4:18 PMcargo build in src/rust/engine not used by the ./pants invocation in the Pants repository? that is, ./pants will rebuild the Rust code even after cargo build has been run successfully. Compiler options or some reason? And where should I look for the difference?broad-processor-92400
05/12/2024, 11:27 PM./cargo build without code changes will build pyo3-build-config (iirc) and downstream packages. I have no solutions... but does that sound familiar?
In addition, you may already be aware of this, but ./cargo build uses a debug build by default, while ./pants uses a release one. MODE=debug ./pants ... changes that.fast-nail-55400
05/13/2024, 1:32 AMI've seen spurious rebuilds related to PyO3 before, where even runningI see pyo3 crates rebuild when I make changes towithout code changes will build./cargo build(iirc) and downstream packages. I have no solutions... but does that sound familiar?pyo3-build-config
engine crate itselfhappy-kitchen-89482
05/13/2024, 3:10 PM./cargo build in root, as well as cargo build in src/rust/engine? There may be some extra magic going on in that ./cargo script