<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Struo</title>
    <description>The latest articles on DEV Community by Struo (struo).</description>
    <link>https://dev.to/struo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F16478%2F1c2bd666-6ac8-4011-a9f5-c6caff2b1306.png</url>
      <title>DEV Community: Struo</title>
      <link>https://dev.to/struo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/struo"/>
    <language>en</language>
    <item>
      <title>Builds are the new bottleneck</title>
      <dc:creator>Pedro Piñera Buendía</dc:creator>
      <pubDate>Thu, 26 Nov 2026 17:41:37 +0000</pubDate>
      <link>https://dev.to/struo/builds-are-the-new-bottleneck-2kbe</link>
      <guid>https://dev.to/struo/builds-are-the-new-bottleneck-2kbe</guid>
      <description>&lt;p&gt;The world is going to need more compute. Agents produce more software, and that software needs to be built and tested. When we started building infrastructure at &lt;a href="https://tuist.dev" rel="noopener noreferrer"&gt;Tuist&lt;/a&gt;, we expected that demand to grow. But teams were already compiling the same dependencies over and over across developer machines and CI. More capacity would help; so would avoiding repeated work.&lt;/p&gt;

&lt;p&gt;We built shared caching to reuse results and remote execution to distribute work. But projects couldn't use those services unless their build tools supported them. &lt;strong&gt;Using compute efficiently shouldn't require changing how you define your software.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sandbox providers were also giving agents new places to run code. We wanted to connect existing projects and automation to all this infrastructure, including providers other than ourselves. That became &lt;a href="https://struo.run" rel="noopener noreferrer"&gt;Struo&lt;/a&gt;, Latin for "I build" or "I arrange".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Our mission is to bring remote caching and execution to everyone.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping the project you already have
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://about.google" rel="noopener noreferrer"&gt;Google&lt;/a&gt; and &lt;a href="https://about.meta.com" rel="noopener noreferrer"&gt;Meta&lt;/a&gt; have dealt with high build volumes for years, and &lt;a href="https://bazel.build" rel="noopener noreferrer"&gt;Bazel&lt;/a&gt; and &lt;a href="https://buck2.build" rel="noopener noreferrer"&gt;Buck&lt;/a&gt; brought their approach to remote caching and execution to other organizations. Struo brings those benefits to the project you already have. It reads the definitions your toolchain already uses, such as a &lt;code&gt;Cargo.toml&lt;/code&gt; or an Xcode project, and derives the build graph from them. You keep your manifests and your workflow, and caching and remote execution work underneath.&lt;/p&gt;

&lt;p&gt;Native tools are catching up, and we're happy to see it. &lt;a href="https://developer.apple.com/documentation/xcode-release-notes/xcode-26-release-notes" rel="noopener noreferrer"&gt;Xcode 26 introduced compilation caching&lt;/a&gt;, and &lt;a href="https://goals.rust-lang.org/2026/cargo-cross-workspace-cache.html" rel="noopener noreferrer"&gt;Cargo is working toward a cache shared across workspaces&lt;/a&gt;, with remote caching as a possible future extension. Until that support reaches every toolchain a team uses, Struo offers another option that works with your project today.&lt;/p&gt;

&lt;h2&gt;
  
  
  A narrow waist between projects and infrastructure
&lt;/h2&gt;

&lt;p&gt;Struo turns a project's work into actions: a command to run, the inputs it needs, and the outputs to keep. A cache can store the results, and a compute provider can run the command. Neither needs to understand the original project format.&lt;/p&gt;

&lt;p&gt;This is the narrow waist: &lt;strong&gt;a common interface to caching and execution, without prescribing how teams organize their work.&lt;/strong&gt; It works for existing projects and for internal automation teams build themselves.&lt;/p&gt;

&lt;p&gt;We've integrated with many providers for caching and remote execution, and keep adding more. We want using them to become a solved problem, without requiring specialist build-system expertise. Teams could stop wasting compute, and providers, including us, could work on other challenges.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with a script
&lt;/h2&gt;

&lt;p&gt;You don't have to move a whole project to try this. &lt;strong&gt;You can adopt as much as you need, one piece of work at a time.&lt;/strong&gt; Start with a script:&lt;/p&gt;

&lt;p&gt;For Vitest, save this as &lt;code&gt;scripts/test.sh&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/usr/bin/env -S struo exec -- bash
# struo input "../package.json"
# struo input "../package-lock.json"
# struo input "../src"
# struo input "../tests"
# struo input "../vitest.config.ts"
# struo output "../reports"
# struo cwd ".."
# struo remote "remote_tests"

set -eu
npm ci --no-audit --no-fund
./node_modules/.bin/vitest run --reporter=json --outputFile=reports/vitest.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The first line runs the script through Struo. The headers tell it what to send, what to bring back, and where to run. Configure &lt;code&gt;remote_tests&lt;/code&gt; in &lt;code&gt;struo.toml&lt;/code&gt; with an environment supplying Node.js, npm, and Bash, and adjust the input paths for your project.&lt;/p&gt;

&lt;p&gt;After &lt;code&gt;chmod +x scripts/test.sh&lt;/code&gt;, run &lt;code&gt;./scripts/test.sh&lt;/code&gt;. Struo either restores a cached result or runs the script remotely and brings back the report. The &lt;a href="https://struo.run/docs/guide/infrastructure/remote-execution" rel="noopener noreferrer"&gt;remote execution guide&lt;/a&gt; covers setup and caching dependency installation separately.&lt;/p&gt;

&lt;p&gt;You can stop there. The rest of your project keeps building and running as before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Then use it for your project
&lt;/h2&gt;

&lt;p&gt;For supported native projects, Struo reads the existing definition and derives the build graph. That includes Cargo, Xcode, Swift packages, Mix, and Nx. You don't add build files or run an init step.&lt;/p&gt;

&lt;p&gt;For a Cargo project, replace &lt;code&gt;cargo build&lt;/code&gt; with &lt;code&gt;struo build&lt;/code&gt; from the directory containing your root &lt;code&gt;Cargo.toml&lt;/code&gt;. You keep your manifests, lockfile, and Rust toolchain; Struo reads the project and caches its build actions locally. Once you connect a remote cache provider, the same command shares those results with your teammates and CI.&lt;/p&gt;

&lt;p&gt;For a Cargo workspace with dependencies, build scripts, and tests, here's how &lt;code&gt;struo build my-cli&lt;/code&gt; works:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv1wwlo6dluq48v1yigoi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv1wwlo6dluq48v1yigoi.png" alt="Struo building a Cargo workspace in five steps: Discovery finds Cargo.toml, Resolution runs cargo metadata and emits targets, Analysis creates one rustc action per crate, Scheduling runs actions concurrently within a resource budget, and Execution reuses cached results and runs the rest locally or on remote workers" width="798" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cargo resolves the project; Struo schedules and caches the individual compilation and build-script actions. Results are cached per action rather than for the whole build, so changing one crate doesn't discard the work done for unrelated crates.&lt;/p&gt;

&lt;p&gt;For actions that still need to run, &lt;code&gt;struo build --remote --compute &amp;lt;provider&amp;gt;&lt;/code&gt; sends them to a remote worker while your machine schedules the build and caches the results. Remote execution is newer than caching, and we're still working on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Take control with Starlark when you need it
&lt;/h2&gt;

&lt;p&gt;For more control, you can define the build graph yourself. This can help you optimize graph loading or connect components written in different languages. Targets and dependencies go in &lt;code&gt;struo.toml&lt;/code&gt;; Starlark defines how to build them.&lt;/p&gt;

&lt;p&gt;Inside a custom Starlark target kind, you could declare this action:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;generated&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;declare_output&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"api.ts"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;run_action&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;argv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"python3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"tools/generate.py"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"api/schema.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;generated&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;inputs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"tools/generate.py"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"api/schema.json"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;outputs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;generated&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It runs a Python generator to produce a TypeScript file that another target can use. Struo tracks the inputs and caches the result. This excerpt shows just the action; the &lt;a href="https://struo.run/docs/reference/modules" rel="noopener noreferrer"&gt;Starlark reference&lt;/a&gt; explains how to define the full target kind.&lt;/p&gt;

&lt;p&gt;You can define one part of the graph or all of it. The caching and execution stay the same.&lt;/p&gt;

&lt;p&gt;Organizations are building their own systems too. Shopify is developing &lt;a href="https://www.socallinuxexpo.org/scale/23x/presentations/tectonix-bedrock-shopifys-monorepo" rel="noopener noreferrer"&gt;Tectonix on Nix for its World monorepo&lt;/a&gt;. We don't know its eventual shape, but we're confident systems like it will need caching and distributed execution. We want Struo to be an option for teams taking that route.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built for agents
&lt;/h2&gt;

&lt;p&gt;You can ask an agent to run the same script:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Run the tests in scripts/test.sh and tell me whether they passed and whether the result came from cache.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;With Struo's MCP server connected and execution enabled through &lt;code&gt;struo mcp --allow-run&lt;/code&gt;, the agent calls the &lt;code&gt;struo_exec_script&lt;/code&gt; tool with the script's path. Struo returns the exit status, cache hit or miss, and command output as structured data. The agent doesn't have to work those out by reading terminal logs.&lt;/p&gt;

&lt;p&gt;Agents can also query the graph and validate edits. We're building live run events so they can follow progress too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting a provider
&lt;/h2&gt;

&lt;p&gt;For Tuist, connecting a project takes one command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;struo connect --provider tuist --create
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It signs you in if needed, creates the project, and records the binding in &lt;code&gt;struo.toml&lt;/code&gt; without storing credentials in the repository. Teammates and CI sign in with &lt;code&gt;struo auth login&lt;/code&gt; or a token.&lt;/p&gt;

&lt;p&gt;Struo is MIT-licensed, and the provider contract is documented.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we're building it now
&lt;/h2&gt;

&lt;p&gt;A few years ago, we wouldn't have attempted this ourselves. Supporting native project formats across this many toolchains would have been too much work for a team our size.&lt;/p&gt;

&lt;p&gt;We use agents heavily to build Struo and check it against open source projects. There will be gaps. You can report them using Struo's reproduction export, which includes project manifests but leaves source files empty. Contributions are welcome too.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://x.com/mitchellh/status/2074225453217505494" rel="noopener noreferrer"&gt;Mitchell Hashimoto wrote&lt;/a&gt;, "The pursuit of excellence does not need justification." Agents have given us room to pursue a better developer experience, from the first script to a custom build system.&lt;/p&gt;

&lt;p&gt;It would be a dream for us if native toolchains caught up and teams no longer needed another build tool for this. We'd be happy to see Struo help teams use a competitor's infrastructure too. &lt;strong&gt;We want builds and tests to be faster and more efficient for everyone&lt;/strong&gt;, whether they use Tuist or not.&lt;/p&gt;

&lt;p&gt;If you provide caching or compute infrastructure, email &lt;a href="mailto:pedro@tuist.dev"&gt;pedro@tuist.dev&lt;/a&gt;. We'd love to work with you to make connecting Struo to your infrastructure as easy as possible for teams using it.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>build</category>
      <category>devops</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
