Skip to content

Conversation

@knjiang
Copy link
Contributor

@knjiang knjiang commented Dec 30, 2025

Convert lingua from single crate to workspace repo for introducing more crates in the future, namely braintrust-llm-router

Testing:

verified tests passing in main repo.

  1. Core Rust Build System
Command Result
cargo check --all-features PASS
cargo build PASS
cargo test 105 tests passed
cargo fmt --all -- --check PASS
cargo clippy --all-targets --all-features -- -D warnings PASS
  1. Makefile Targets
Target Result
make help PASS
make check PASS
make generate-types PASS (20 tests)
make install-wasm-tools PASS
make lingua-wasm PASS (after fix)
make typescript PASS
make python PASS (after fix)
make test-rust PASS
make test-typescript PASS (69 tests)
make test-python PASS (20 tests)
make test-typescript-integration FAIL (pre-existing: missing script)
  1. Scripts
Script Result
./scripts/install-hooks.sh PASS
./scripts/setup.sh PASS
  1. Provider Type Generation Pipelines
Pipeline Result
./pipelines/generate-provider-types.sh openai PASS (after fix)
./pipelines/generate-provider-types.sh anthropic PASS
./pipelines/generate-provider-types.sh google PASS
  1. GitHub CI Workflow Commands (Local Validation)
Step Result
cargo fmt --all -- --check PASS
cargo clippy --all-targets --all-features -- -D warnings PASS
RUSTFLAGS="-D warnings" cargo build --verbose PASS
RUSTFLAGS="-D warnings" cargo test --verbose PASS
TypeScript generation up-to-date check PASS
  1. Workspace Structure
Test Result
cargo check -p lingua (individual crate) PASS
cargo check -p generate-types (individual crate) PASS
cargo run --bin generate-types (binary) PASS
pnpm workspace packages accessible PASS

Copy link
Contributor Author

knjiang commented Dec 30, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@knjiang knjiang marked this pull request as ready for review December 30, 2025 04:40
[package]
name = "lingua"
[workspace]
members = ["crates/*"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this flat hierarchy pattern was recommended here -> https://matklad.github.io/2021/08/22/large-rust-workspaces.html

@knjiang knjiang requested a review from ankrgyl December 30, 2025 05:59
@knjiang knjiang merged commit 3d00ae8 into main Dec 30, 2025
4 checks passed
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.

3 participants