Skip to content

Make ts-rs dependency optional in tensorzero-http#7477

Open
Aaron1011 wants to merge 1 commit into
mainfrom
aaron/opt-http-ts-rs
Open

Make ts-rs dependency optional in tensorzero-http#7477
Aaron1011 wants to merge 1 commit into
mainfrom
aaron/opt-http-ts-rs

Conversation

@Aaron1011
Copy link
Copy Markdown
Member

@Aaron1011 Aaron1011 commented May 14, 2026

This allows external repositories to avoid pulling in a ts-rs dependency


Note

Low Risk
Low risk dependency/feature wiring change, but it may affect downstream builds if they relied on ts-rs being always enabled or on implicit TypeScript export generation.

Overview
tensorzero-http now feature-gates ts-rs (new ts-rs feature; dependency marked optional) and conditionally derives/exports TS types in ApiType via cfg_attr.

Workspace dependency wiring is updated so internal crates (tensorzero-core, tensorzero-error, tensorzero-inference-types, tensorzero-overhead, tensorzero-types) depend on tensorzero-http through workspace = true, while the workspace definition enables tensorzero-http’s ts-rs feature by default.

Reviewed by Cursor Bugbot for commit 59337fe. Configure here.

This allows external repositories to avoid pulling in
a ts-rs dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants