Skip to content

ci(xtask): add dependency-invariant guard for ironrdp-session#1438

Merged
Benoît Cortier (CBenoit) merged 2 commits into
masterfrom
chore/dependency-invariant-xtask-guard
Jul 10, 2026
Merged

ci(xtask): add dependency-invariant guard for ironrdp-session#1438
Benoît Cortier (CBenoit) merged 2 commits into
masterfrom
chore/dependency-invariant-xtask-guard

Conversation

@CBenoit

Copy link
Copy Markdown
Member

Add cargo xtask check dependencies, asserting ironrdp-session has no transitive (non-dev) edge to ironrdp-connector or sspi. Each forbidden (package, banned) pair is checked via cargo tree -p <pkg> -e no-dev -i <banned>: a successful, non-empty output means the edge is present and fails the check.

This locks the invariant introduced in #1423 so decode-only consumers can depend on ironrdp-session alone with the slim graph, without it regressing.

The guard runs in the CI checks job and is included in the ci sweep.

Closes #1424

Add `cargo xtask check dependencies`, asserting `ironrdp-session` has no
transitive (non-dev) edge to `ironrdp-connector` or `sspi`. Each forbidden
`(package, banned)` pair is checked via `cargo tree -p <pkg> -e no-dev
-i <banned>`: a successful, non-empty output means the edge is present and
fails the check.

This locks the invariant introduced in #1423 so decode-only consumers can
depend on `ironrdp-session` alone with the slim graph, without it regressing.

The guard runs in the CI `checks` job and is included in the `ci` sweep.

Closes #1424
Copilot AI review requested due to automatic review settings July 10, 2026 09:16
@CBenoit
Benoît Cortier (CBenoit) enabled auto-merge (squash) July 10, 2026 09:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an xtask guard preserving ironrdp-session’s slim dependency graph.

Changes:

  • Adds check dependencies CLI support.
  • Checks forbidden non-dev dependency edges.
  • Runs the guard in CI and the full xtask sweep.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
xtask/src/check.rs Implements dependency invariant checks.
xtask/src/cli.rs Exposes the new command.
xtask/src/main.rs Dispatches and includes the check in CI.
.github/workflows/ci.yml Runs the check across CI platforms.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread xtask/src/check.rs
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@CBenoit
Benoît Cortier (CBenoit) merged commit 131d7d3 into master Jul 10, 2026
22 checks passed
@CBenoit
Benoît Cortier (CBenoit) deleted the chore/dependency-invariant-xtask-guard branch July 10, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add a dependency-invariant xtask guard for ironrdp-session (no ironrdp-connector/sspi edge)

4 participants