Skip to content

refactor: Port Cargo task and contract knowledge - #13581

Merged
anthonyshew merged 1 commit into
mainfrom
shew/turbo-5792-port-rust-native-task-command-knowledge
Jul 30, 2026
Merged

anthonyshew merged 1 commit into
mainfrom
shew/turbo-5792-port-rust-native-task-command-knowledge

Conversation

@anthonyshew

@anthonyshew anthonyshew commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Move Cargo task commands, entrypoint selection, defaults, derived inputs, environment, exact outputs, and cache safety into immutable repository knowledge.

Base: main.

Changes

  • Retain Cargo override framing and serial grouping in native-task scope knowledge.
  • Remove dead command-era package-manager and graph resolution helpers.
  • Produce immutable Cargo task contracts during discovery.
  • Compose cache defaults, dependency-source inputs, hashed environment, output layout, and safety states from PackageTaskContext.
  • Move task entrypoint selection from mutable CargoToolchain state to immutable contracts.
  • Preserve query task enumeration and exclude-only Cargo entrypoint selection.
  • Project task-I/O environment patterns from contract knowledge.
  • Delete task defaults, task-I/O, and entrypoint-selection callbacks from Toolchain.
  • Preserve fail-closed output and untracked-input behavior.

Testing

  • cargo test -p turborepo-repository cargo::test (41 passed)
  • cargo test -p turborepo-engine (126 passed)
  • cargo test -p turbo --test cargo_workspace_test (57 passed)
  • cargo clippy -p turborepo-repository -p turborepo-engine -p turborepo-lib -p turborepo-task-executor -p turborepo-run-summary --all-targets -- -D warnings
  • cargo fmt --check

Closes TURBO-5792.
Closes TURBO-5791.

@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview Jul 30, 2026 4:31am
examples-designsystem-docs Ready Ready Preview Jul 30, 2026 4:31am
examples-gatsby-web Ready Ready Preview Jul 30, 2026 4:31am
examples-kitchensink-blog Ready Ready Preview Jul 30, 2026 4:31am
examples-nonmonorepo Ready Ready Preview Jul 30, 2026 4:31am
examples-svelte-web Ready Ready Preview Jul 30, 2026 4:31am
examples-tailwind-web Ready Ready Preview Jul 30, 2026 4:31am
examples-vite-web Ready Ready Preview Jul 30, 2026 4:31am
turbo-site Ready Ready Preview Jul 30, 2026 4:31am
turborepo-eve-agent Ready Ready Preview Jul 30, 2026 4:31am

Comment thread crates/turborepo-repository/src/package_graph/mod.rs
@anthonyshew
anthonyshew force-pushed the shew/turbo-5795-port-rust-external-resolution-knowledge branch from dce9515 to 0a3f8a4 Compare July 30, 2026 04:13
Base automatically changed from shew/turbo-5795-port-rust-external-resolution-knowledge to main July 30, 2026 04:22
@anthonyshew
anthonyshew force-pushed the shew/turbo-5792-port-rust-native-task-command-knowledge branch from bd51711 to f6d06b9 Compare July 30, 2026 04:29
@anthonyshew
anthonyshew marked this pull request as ready for review July 30, 2026 04:31
@anthonyshew
anthonyshew requested review from a team and tknickman July 30, 2026 04:31
@anthonyshew
anthonyshew merged commit 74446c5 into main Jul 30, 2026
@anthonyshew
anthonyshew deleted the shew/turbo-5792-port-rust-native-task-command-knowledge branch July 30, 2026 04:38

This branch was successfully deployed

1 active deployment
Preview – turborepo-eve-agent — f6d06b9e Deployed Jul 30, 2026 by vercel[bot]
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