Skip to content

Conversation

@graydon
Copy link
Contributor

@graydon graydon commented Jul 29, 2025

This is a WIP branch for properly enabling rust-with-tsan inside the core build (currently extending #4817 to facilitate running those parallel testcases, but it doesn't depend on any of that work).

Unfortunately propagating the tsan flags through our "separate crates build" is .. extremely hard to get working right.

So I took a different tack here and just added a mode -- --enable-unified-rust-unsafe-for-production -- to the core build system that builds librust_stellar_core.a as a single cargo invocation "the normal way you'd expect", and the way we used to, building the sub-soroban crates as direct dependencies resolved by cargo and linked directly into that crate, not driven by automake. This all works! And nice to know: it also shows no tsan errors in our code currently.

So this is .. very convenient for fiddling with cargo-supported build tricks like "turning on tsan" (and it's also helpful to have as a mode we can switch in the IDE while editing/debugging) but it does risk drift in transitive dependencies -- it undermines the whole reason we have the "separate crates build" in the first place.

@graydon graydon marked this pull request as draft July 29, 2025 01:11
@graydon
Copy link
Contributor Author

graydon commented Aug 8, 2025

will re-open a variant of this with more stuff elsewhere.

@graydon graydon closed this Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant