Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microsoft/typescript-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: nathanwhit/typescript-go-rs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 15 files changed
  • 1 contributor

Commits on Mar 13, 2025

  1. Copy the full SHA
    d36a007 View commit details
  2. cleanup

    nathanwhit committed Mar 13, 2025
    Copy the full SHA
    10a1943 View commit details
Showing with 1,115 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +286 −0 Cargo.lock
  3. +3 −0 Cargo.toml
  4. +1 −1 Herebyfile.mjs
  5. +132 −0 cmd/libr/main.go
  6. +75 −0 cmd/libr/prog.h
  7. +286 −0 tsgo-rs/Cargo.lock
  8. +9 −0 tsgo-rs/Cargo.toml
  9. +3 −0 tsgo-rs/bar.ts
  10. +55 −0 tsgo-rs/build.rs
  11. +2 −0 tsgo-rs/foo.ts
  12. 0 tsgo-rs/lib.d.ts
  13. +209 −0 tsgo-rs/src/lib.rs
  14. +48 −0 tsgo-rs/src/main.rs
  15. +3 −0 tsgo-rs/tsconfig.json
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -188,5 +188,8 @@ custom-gcl.hash

/built

/tsgo-rs/target
/target

# macOS Finder metadata
.DS_Store
286 changes: 286 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[workspace]
resolver = "3"
members = ["./tsgo-rs"]
2 changes: 1 addition & 1 deletion Herebyfile.mjs
Original file line number Diff line number Diff line change
@@ -120,7 +120,7 @@ export const lib = task({
* @param {AbortSignal} [abortSignal]
*/
function buildExecutableToBuilt(packagePath, abortSignal) {
return $({ cancelSignal: abortSignal })`go build ${goBuildFlags} ${goBuildTags("noembed")} -o ./built/local/ ${packagePath}`;
return $({ cancelSignal: abortSignal })`go build -buildmode=c-archive ${goBuildFlags} ${goBuildTags("noembed")} -o ./built/local/ ${packagePath}`;
}

export const tsgoBuild = task({
Loading