Skip to content

feat: add tsgo-client crate#441

Merged
hardfist merged 12 commits intomainfrom
yj/add-tsgo-client
Jan 27, 2026
Merged

feat: add tsgo-client crate#441
hardfist merged 12 commits intomainfrom
yj/add-tsgo-client

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

@hardfist hardfist commented Jan 22, 2026

Summary

add tsgo-client to support better integration with rust
and add get_shorthand_assignment_value_symbol api

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 22, 2026 09:42
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 22, 2026

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit 2abd42b
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/697205979265960008f5d819
😎 Deploy Preview https://deploy-preview-441--rslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eaa5a3659a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 22, 2026

Deploying rslint with  Cloudflare Pages  Cloudflare Pages

Latest commit: b5d0a22
Status:🚫  Build failed.

View logs

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new Rust workspace member tsgo-client, a Rust client for the existing tsgo TypeScript analyzer, and wires it into CI so Rust formatting, linting, build, and tests run alongside the rest of the project.

Changes:

  • Add a Cargo workspace and tsgo-client crate with a process-based client and protocol types for deserializing CBOR responses from tsgo.
  • Provide a small high-level Api wrapper over the lower-level Client.
  • Extend the GitHub Actions CI pipeline with a Rust job (fmt, clippy, build, test) and adjust repo ignore rules for Rust.

Reviewed changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
crates/tsgo-client/src/proto.rs Defines the wire protocol data structures and custom serde deserializers used to decode CBOR responses from the tsgo process.
crates/tsgo-client/src/client.rs Implements the process-spawning Client, its Builder and UninitializedClient, the load-project RPC, error types, and lifecycle management (including a close method and custom Drop).
crates/tsgo-client/src/lib.rs Exposes the crate modules and adds an Api wrapper for initializing a client and loading a project.
crates/tsgo-client/Cargo.toml Declares the tsgo-client package metadata and Rust dependencies needed for error handling and CBOR/serde decoding.
crates/tsgo-client/README.md Documents the purpose of the tsgo-client crate and the data it exposes from TypeScript projects.
Cargo.toml Defines a root Cargo workspace that includes all crates under crates/* and configures common package metadata and release profile.
Cargo.lock Adds the generated lockfile capturing resolved versions for the new Rust workspace and dependencies.
.gitignore Updates ignore rules to include Rust target/ artifacts while preserving existing entries.
.github/workflows/ci.yml Adds a test-rust job to run cargo fmt, cargo clippy, build, and tests across OSes and wires it into the overall CI done gate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hardfist hardfist merged commit 6b45822 into main Jan 27, 2026
13 of 14 checks passed
@hardfist hardfist deleted the yj/add-tsgo-client branch January 27, 2026 09:53
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.

3 participants