Skip to content

[DATASEC-498] Add token-efficiency-checker feature to drop tiktoken-rs - #402

Merged
aimenebelfodil merged 1 commit into
mainfrom
aimene.belfodil/datasec-498/add-feature
Oct 22, 2026
Merged

aimenebelfodil merged 1 commit into
mainfrom
aimene.belfodil/datasec-498/add-feature

Conversation

@aimenebelfodil

@aimenebelfodil aimenebelfodil commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a default-on token-efficiency-checker Cargo feature that gates TokenEfficiencyCheck and NonHexPlusTokenEfficiencyChecker secondary validators.

Motivation

Add the capability to build a leaner dependency, by letting consuming libraries accept dropping these secondary validators.

Describe how you validated your changes

  • Test Suite / sds (pull_request) passes: it runs make check-rust which runs cargo hack check/clippy --each-feature covering the case where we build without the feature.

Additional Notes

Consumers using default-features = false must add token-efficiency-checker to keep these validators.

@aimenebelfodil
aimenebelfodil marked this pull request as ready for review October 22, 2026 12:33
@aimenebelfodil
aimenebelfodil requested a review from a team as a code owner October 22, 2026 12:33
@aimenebelfodil
aimenebelfodil force-pushed the aimene.belfodil/datasec-498/add-feature branch from 80b6f67 to 81514e6 Compare October 22, 2026 12:35
@aimenebelfodil
aimenebelfodil changed the base branch from main to aimene.belfodil/fix-rustls-webpki-advisory October 22, 2026 12:36
Base automatically changed from aimene.belfodil/fix-rustls-webpki-advisory to main October 22, 2026 12:38
Co-authored-by: Cursor <cursoragent@cursor.com>
@aimenebelfodil
aimenebelfodil force-pushed the aimene.belfodil/datasec-498/add-feature branch from 81514e6 to fc3ac39 Compare October 22, 2026 12:38
@aimenebelfodil aimenebelfodil changed the title DATASEC-498 Add token-efficiency-checker feature to drop tiktoken-rs [DATASEC-498] Add token-efficiency-checker feature to drop tiktoken-rs Oct 22, 2026
@aimenebelfodil

Copy link
Copy Markdown
Contributor Author

/merge

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-10-22 13:03:02 UTC ℹ️ Start processing command /merge


2026-10-22 13:03:06 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in main is approximately 0s (p90).


2026-10-22 13:10:10 UTC ℹ️ MergeQueue: This merge request was already merged

This pull request was merged directly.

@aimenebelfodil
aimenebelfodil merged commit 17ed08f into main Oct 22, 2026
6 checks passed
@aimenebelfodil
aimenebelfodil deleted the aimene.belfodil/datasec-498/add-feature branch October 22, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants