Skip to content

layout: move libs/ Rust into cli/ and shared Starlark into core/ (part of #10084) #10086

Closed

Description

@TrapsterDK

Step 5 of #10084. Do it after the language moves (#10068, #10073) and the pins factory (#10065) land.

Where

  • libs/archive, libs/binfmt, libs/exec_os, libs/families, libs/fuzz_run, libs/gomod, libs/launcher, libs/module_bazel, libs/shard_writer, libs/testing, libs/web_server: Rust crates outside cli/.
  • libs/starlark and shared Starlark under quality/, modules/ and dx/: no core/ package yet.
  • Every //libs/... label in BUILD.bazel, .bzl, Cargo.toml, cargo-bazel-lock.json, .bazelignore and CI path filters.

Fix

  • Move each Rust crate to cli/<crate>. Keep crate names. Regenerate cargo-bazel-lock.json and Gazelle output with the generators.
  • Move shared Starlark (providers, quality framework, dx_wrap, toolchain and pins factory) to core/. Core never loads a language .bzl; the load-graph test from core: loading core never fetches a language rule set #10085 must stay green.
  • Delete libs/. No alias packages or re-export shims.
  • One PR per group (Rust crates, then Starlark) if one diff is too large to review.
  • Done when git grep -n '//libs/' is empty and tools/dx test //... passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

Activity

  1. added
    P2
    model:sonnet
    on Nov 9, 2026
  2. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    dx/ holds only BUILD.bazel (gazelle generate/generate_check, env alias, codegen filegroup, probes) and no .bzl. It is the consumer-facing command package (@rules_dx//dx:generate, :generate_check, :env, :codegen), referenced from cli/plan, cli/env_plan, cli/roots, ci.yml and CONTRIBUTING.md. It is not shared Starlark, so nothing moves to core/ from dx/. Remaining under #10086: quality/ (PR #10439).

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

  3. TrapsterDK commented on Nov 10, 2026

    @TrapsterDK
    CollaboratorAuthor

    Done on origin/main c620f02. libs/ does not exist. git grep -n '//libs/' returns one line, a Gazelle test fixture string (gazelle/rust/lang_scopes_test.go:69). The Rust crates are under cli/ (#10106 closed); shared Starlark is under core/, core/modules/ and core/quality/ (#10439). dx/ stays a shared directory per docs/design/layout.md.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hw7VSwpTcKWzXNfUDz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2model:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions