TanStack Start + Rust (Topcoat) in one Monorepo??

Juri Strumpflohner
Published
In this video I show you a PNPM based Nx monorepo workspace which runs JavaScript with TanStack start and a Rust based web application (using Topcoat) in one monorepo. How the task running works, caching and CI.
- Full blog post: https://nx.dev/blog/polyglot-nx-monorepo-rust-tanstack
- TopCoat Github: https://github.com/tokio-rs/topcoat
== Chapters ==
- 0:00 Intro
- 0:34 Codex built me a Swift app in my monorepo
- 1:11 Why polyglot monorepos are coming
- 1:28 The experiment: TanStack + Rust in one Nx repo
- 2:03 Walking the project graph
- 3:01 Shared types generated from the Rust side
- 3:31 nx dev web starts the Rust backend too
- 4:20 The app running in the browser
- 4:54 mise and the Rust toolchain
- 5:11 How Nx runs Rust targets (project.json + monodon)
- 6:17 run-many across JavaScript and Rust, with caching
- 7:14 CI on Nx Cloud, configured by the agent
- 7:46 A custom launch template for Rust agents
- 8:17 Inside a distributed CI run
- 8:49 Takeaways