microsoft / microsoft/TypeScript

[Feature Request] Static C library

Open
#63,799 1 comment 0 reactions 0 assignees View on GitHub
Possible Improvement
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

Hi all,

I'd like to embed tsgo within my Rust binary (so I can distribute a single binary application).

Given Go can be compiled to static and dynamic C libraries, I'd like to request that tsgo be distributed as a static and/or dynamic C library such that it is directly callable from other native applications.

I am happy to open PRs to enable this functionality if the team is happy with the idea.

As embedders would be a small population, the embedder library doesn't need to be a stable interface for support purposes.

Contributor guide

Open the contributing guide

Research direction

Start by locating tsgo and its current Go build entry point, then review how the TypeScript repository produces release artifacts. The work is complete when native applications can call the resulting static and/or dynamic C library, including the requested Rust embedding use case.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, go, rust
Domain
compilers, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.