Skip to content

Add dependency kind to BRP - #25853

Open
Zeophlite wants to merge 3 commits into
bevyengine:mainfrom
Zeophlite:brp-dependency-kind
Open

Zeophlite wants to merge 3 commits into
bevyengine:mainfrom
Zeophlite:brp-dependency-kind

Conversation

@Zeophlite

Copy link
Copy Markdown
Contributor

Objective

  • Expose information about the dependency over BRP

Solution

  • Add DependencyData to the dependency field in schedule.graph
  • DependencyData has kind: DependencyKind which is "Strict", "Weak", "BuildPass" (note that when added by build pass its always strict)

Testing

  • cargo run --example server --features="bevy_remote"
  • curl -d'{"jsonrpc":"2.0","method":"schedule.graph","id":1,"params":{"schedule_label":"PostUpdate"}}' -X POST -H "Accept: applcation/json" -H "Content-Type: application/json" http://127.0.0.1:15702 | jq '.' > PostUpdate.json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "schedule_data": {
      "dependency": [
        [
          {
            "System": 70
          },
          {
            "SystemSet": 178
          },
          {
            "kind": "Strict"
          }
        ],
        ...
      ],
      ...
    }
  }
}

@Zeophlite Zeophlite added A-ECS Entities, components, systems, and events D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Sep 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in ECS Sep 20, 2026
@Zeophlite
Zeophlite requested a review from andriyDev September 20, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ECS Entities, components, systems, and events D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

1 participant