Skip to content

feat(native): add internal binding loader - #257

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-internal-native-loader
Aug 8, 2026
Merged

feat(native): add internal binding loader#257
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-internal-native-loader

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR introduces an internal lazy loader for the NAPI-RS binding so rstack can start depending on Rust without exposing a public native API. The generated binding loader and declarations are included in the package, while the internal loader resolves the installed package before requiring them. The JavaScript-to-Rust smoke test now runs in the standard Rstest suite after CI builds the host native binding.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: e5fff19
Status: ✅  Deploy successful!
Preview URL: https://1433d587.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-internal-nat.rstack-cli.pages.dev

View logs

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

Copy link
Copy Markdown

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: e5fff198b0

ℹ️ 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".

Comment thread packages/rstack/tests/native/smoke.test.ts
Comment thread packages/rstack/package.json
@chenjiahan
chenjiahan merged commit bb327c3 into main Aug 8, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-internal-native-loader branch August 8, 2026 23:53
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.

1 participant