Skip to content

[rust-processor] Gate render, tokenizer and parser behind cargo features - #42663

Merged
sherlockwu merged 1 commit into
mainfrom
kan/sglang-processor-features
Oct 6, 2026
Merged

sherlockwu merged 1 commit into
mainfrom
kan/sglang-processor-features

Conversation

@sherlockwu

@sherlockwu sherlockwu commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

sgl-router only needs rendering from sglang-processor, so it should not have to pull in dynamo-parsers and its ruff-parser and openai-harmony dependency tree.

Stacked on the layout PR.

Modifications

  • Add render, tokenizer and parser features, all on by default. Each one gates its module and its Dynamo crate.
  • The renderer image's test stage also checks the render,tokenizer subset.
  • The README notes the features.

Checks

  • cargo clippy --all-targets -- -D warnings and cargo test pass for each feature set: none, render, tokenizer, parser, render,tokenizer, and the default.

CI States

Latest PR Test (Base): ✅ Run #37498574556
Latest PR Test (Extra): ❌ Run #37498574240
Latest PR Test (AMD ROCm 10): ➖ No AMD PR run found for this commit.

@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file labels Oct 5, 2026
@sherlockwu
sherlockwu added this pull request to stack #42667 October 5, 2026 22:07
@sherlockwu
sherlockwu force-pushed the kan/sglang-processor-features branch from 3b0ebed to 4505131 Compare October 6, 2026 02:07
@sherlockwu sherlockwu added the run-ci CI: run the baseline test suite on this PR label Oct 6, 2026
Base automatically changed from kan/sglang-processor-layout to main October 6, 2026 10:59

@ShangmingCai ShangmingCai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, need a rebase

@sagearc sagearc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @sherlockwu !

Comment thread docker/renderer.Dockerfile Resolved
All three are on by default. A host that only renders and tokenizes, such as
sgl-router, can drop `dynamo-parsers` and its ruff/harmony dependency tree.
The renderer image's test stage checks that subset.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sherlockwu
sherlockwu force-pushed the kan/sglang-processor-features branch from 4505131 to cb9879b Compare October 6, 2026 16:48

@sagearc sagearc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@sherlockwu
sherlockwu merged commit 0f57a39 into main Oct 6, 2026
113 of 117 checks passed
@sherlockwu
sherlockwu deleted the kan/sglang-processor-features branch October 6, 2026 17:58
cursor Bot pushed a commit to cipheraxat/sglang that referenced this pull request Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation router run-ci CI: run the baseline test suite on this PR rust-renderer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants