Skip to content

build: centralize Cargo workspace dependencies - #1563

Merged
willkill07 merged 1 commit into
NVIDIA:release/0.11from
willkill07:build/relay-1160-workspace-dependencies
Oct 29, 2026
Merged

willkill07 merged 1 commit into
NVIDIA:release/0.11from
willkill07:build/relay-1160-workspace-dependencies

Conversation

@willkill07

@willkill07 willkill07 commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Overview

Centralize Cargo dependency versions in the root workspace manifest so all members share a consistent source of truth.

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Declare all 104 dependencies in [workspace.dependencies], grouped by purpose with comments and alphabetical ordering within each group.
  • Use workspace inheritance throughout all 17 members, including target, development, and build dependencies in crates, examples, fixtures, and benchmark tools.
  • Keep feature selections and optional flags with each consumer. Reconcile differing version requirements using the stricter existing requirement.
  • Preserve the resolved package graph and enabled features; Cargo.lock is unchanged.

Validation: uv run pre-commit run, cargo check --workspace --all-targets --locked, locked Cargo metadata resolution with default and all features, and git diff --check passed. Compared all 287 direct dependency declarations to confirm unchanged feature selections, defaults, optional flags, targets, and dependency kinds. Runtime test suites were not run for this manifest-only reorganization.

Where should the reviewer start?

Start with [workspace.dependencies] in Cargo.toml, then crates/core/Cargo.toml to see the inheritance pattern and crate-specific feature selections.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

Closes RELAY-1160.

Summary by CodeRabbit

  • Chores
    • Standardized dependency configuration across project components, examples, and tooling.
    • Updated default dependency feature settings in several components.
    • The experimental semantic-conventions feature is no longer available.

@willkill07
willkill07 requested a review from a team as a code owner October 29, 2026 13:42
@github-actions github-actions Bot added size:L PR is large Maintenance CI or Build or general repository maintenance labels Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between ea5f388 and 7f33ccf.

Files selected for processing: 18
  • Cargo.toml
  • crates/adaptive/Cargo.toml
  • crates/cli/Cargo.toml
  • crates/core/Cargo.toml
  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/node/Cargo.toml
  • crates/pii-redaction/Cargo.toml
  • crates/plugin/Cargo.toml
  • crates/python/Cargo.toml
  • crates/types/Cargo.toml
  • crates/worker-proto/Cargo.toml
  • crates/worker/Cargo.toml
  • examples/language-binding-plugin/rust/Cargo.toml
  • examples/rust-grpc-worker-plugin/Cargo.toml
  • examples/rust-native-plugin/Cargo.toml
  • scripts/latency_benchmark/daemon_transport/Cargo.toml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Recent review details
Context from checks skipped due to timeout: 2
  • GitHub Check: Preview docs
  • GitHub Check: Changes / Detect
Additional context used
Code guidelines: 4
RELEASING.md — auto-discovered
.agents/skills/update-project-version/SKILL.md — configured
.agents/skills/maintain-optimizer/SKILL.md — configured
.agents/skills/maintain-packaging/SKILL.md — configured
Path-based instructions: 8
Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.

CodeRabbit configuration file

Files:

  • scripts/latency_benchmark/daemon_transport/Cargo.toml
Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.

CodeRabbit configuration file

Files:

  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
Treat binding changes as public API changes.

CodeRabbit configuration file

Files:

  • crates/node/Cargo.toml
  • crates/python/Cargo.toml
  • crates/ffi/Cargo.toml
Applicability reference: AGENTS.md: # NeMo Relay Repository Guidance Keep release-process policy in maintainer sources such as `RELEASING.md` and Source excerpt: The root `Cargo.toml` `workspace.package.version` is the can...

CodeRabbit inference engine (RELEASING.md)

Files:

  • Cargo.toml
Source excerpt: `Cargo.toml` `[workspace.package].version` is the Rust source of truth.

CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)

Files:

  • Cargo.toml
Source excerpt: Python surfaces use PEP 440 translations where required; Cargo, npm, and plugin manifests use the repository SemVer form.

CodeRabbit inference engine (.agents/skills/update-project-version/SKILL.md)

Files:

  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/node/Cargo.toml
  • crates/core/Cargo.toml
  • crates/worker-proto/Cargo.toml
  • examples/language-binding-plugin/rust/Cargo.toml
  • crates/types/Cargo.toml
  • crates/worker/Cargo.toml
  • examples/rust-native-plugin/Cargo.toml
  • crates/pii-redaction/Cargo.toml
  • crates/plugin/Cargo.toml
  • crates/python/Cargo.toml
  • crates/adaptive/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/cli/Cargo.toml
  • examples/rust-grpc-worker-plugin/Cargo.toml
Source excerpt: `crates/adaptive`

CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Files:

  • crates/adaptive/Cargo.toml
Source excerpt: Rust `Cargo.toml` package names and workspace metadata

CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Files:

  • crates/core/tests/fixtures/native_plugin/Cargo.toml
  • crates/core/tests/fixtures/worker_plugin/Cargo.toml
  • crates/node/Cargo.toml
  • crates/core/Cargo.toml
  • crates/worker-proto/Cargo.toml
  • examples/language-binding-plugin/rust/Cargo.toml
  • crates/types/Cargo.toml
  • crates/worker/Cargo.toml
  • examples/rust-native-plugin/Cargo.toml
  • crates/pii-redaction/Cargo.toml
  • crates/plugin/Cargo.toml
  • scripts/latency_benchmark/daemon_transport/Cargo.toml
  • crates/python/Cargo.toml
  • crates/adaptive/Cargo.toml
  • crates/ffi/Cargo.toml
  • crates/cli/Cargo.toml
  • examples/rust-grpc-worker-plugin/Cargo.toml
  • Cargo.toml
Learnings: 1
Common learnings
Learnt from: CR
Repo: NVIDIA/NeMo-Relay

Timestamp: 2026-10-29T13:44:04.040Z
Learning: Applicability reference:
AGENTS.md: # NeMo Relay Repository Guidance
## On-Demand Guidance
See `CONTRIBUTING.md` and `docs/contribute/testing-and-docs.mdx` for contributor
details, and `.agents/skills/README.md` for the maintainer skill boundary.

Source excerpt:
# Contributing to NeMo Relay

## Testing Requirements

Run integration, documentation, packaging, FFI, generated-output, or build-only
checks only when those surfaces change or the relevant test does not build
them. Documentation, comments, mechanical metadata, and other reversible
low-impact changes do not need language suites or implementation-mirroring
tests. When adding behavior, place meaningful tests in each affected surface.

Walkthrough

The workspace manifest now centralizes dependency declarations across the Rust workspace. Crate, fixture, example, and benchmark manifests inherit these declarations instead of repeating versions. Several manifests also change default-feature settings, and the workspace removes semconv_experimental from opentelemetry-semantic-conventions.

Changes

Workspace Dependency Centralization

Layer / File(s) Summary
Workspace dependency declarations
Cargo.toml
The workspace manifest adds centralized dependency declarations across multiple categories and removes semconv_experimental from opentelemetry-semantic-conventions.
Crate manifest adoption
crates/{adaptive,cli,core,ffi,node,pii-redaction,plugin,python,types,worker-proto,worker}/Cargo.toml
Crate manifests use workspace dependencies for production, target-specific, build, and development dependencies. Several declarations also change default-feature settings.
Fixture, example, and benchmark adoption
crates/core/tests/fixtures/{native_plugin,worker_plugin}/Cargo.toml, examples/{language-binding-plugin/rust,rust-grpc-worker-plugin,rust-native-plugin}/Cargo.toml, scripts/latency_benchmark/daemon_transport/Cargo.toml
These manifests use workspace dependency declarations instead of local versions or paths. The benchmark manifest also removes default-feature exclusions for hyper-rustls and rustls.

Priority: Low

Estimated code review effort: 2 (Simple) | ~15 minutes

Change: Refactor

Merge Risk: Minimal · up to 7f33c

No merge-blocking issue is established by the supplied evidence.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title follows Conventional Commits format with the allowed lowercase type "build", an imperative summary, no trailing period, and 46 characters.
Description check Passed The description includes all required sections, completed checklist items, detailed implementation and validation notes, reviewer guidance, and a valid related issue reference using "Closes".
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (18 skipped: 18 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@willkill07 willkill07 self-assigned this Oct 29, 2026
@willkill07 willkill07 added this to the 0.11 milestone Oct 29, 2026
@github-actions

Copy link
Copy Markdown

License Diff

Compared against origin/release/0.11.

Lockfile license changes

Lockfile License Changes

Rust

Added

  • None

Removed

  • None

Updated/Changed

  • None

Node

Added

  • None

Removed

  • None

Updated/Changed

  • None

Python

Added

  • None

Removed

  • None

Updated/Changed

  • None
Status output
[license-diff] selected languages: rust, node, python
[license-diff] generating current inventory
[license-diff] current: generating Rust inventory
[license-diff] current: Rust inventory complete (489 packages)
[license-diff] current: generating Node inventory
[license-diff] current: Node inventory complete (424 packages)
[license-diff] current: generating Python inventory
[license-diff] current: Python inventory complete (158 packages)
[license-diff] current inventory complete
[license-diff] checking out base ref origin/release/0.11 into a temporary worktree
[license-diff] base: generating Rust inventory
[license-diff] base: Rust inventory complete (489 packages)
[license-diff] base: generating Node inventory
[license-diff] base: Node inventory complete (424 packages)
[license-diff] base: generating Python inventory
[license-diff] base: Python inventory complete (158 packages)
[license-diff] base inventory complete
[license-diff] removing temporary base worktree
[license-diff] comparing inventories
[license-diff] rendering Markdown output
[license-diff] done

@github-actions

Copy link
Copy Markdown

@willkill07
willkill07 merged commit 11fd6ae into NVIDIA:release/0.11 Oct 29, 2026
97 checks passed
@willkill07
willkill07 deleted the build/relay-1160-workspace-dependencies branch October 30, 2026 14:46
@coderabbitai coderabbitai Bot mentioned this pull request Oct 30, 2026
2 tasks done

This branch was previously deployed

1 inactive deployment
fern — 7f33ccfa Deployed Oct 29, 2026 by willkill07 via Clean up docs preview #6751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintenance CI or Build or general repository maintenance size:L PR is large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants