Skip to content

refactor(js-runtime): drop unused async-trait from JsRuntimeProvider - #2538

Open
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:refactor/js-runtime-drop-async-trait
Open

refactor(js-runtime): drop unused async-trait from JsRuntimeProvider#2538
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:refactor/js-runtime-drop-async-trait

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

JsRuntimeProvider was annotated with #[async_trait], but none of its methods are async. name, platform_string, get_download_info, binary_relative_path, bin_dir_relative_path, and parse_shasums are all synchronous, so the macro had nothing to transform and generated the same code as the plain trait.

If a future runtime provider (Bun, Deno) needs async trait methods, the attribute can be added back at that point.

The trait has no async methods, so the attribute generated nothing. Remove it and the async-trait dependency from vp_js_runtime.
@netlify

netlify Bot commented Aug 23, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 882e2b7
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a8aad75a1a5730008d91592

@jong-kyung jong-kyung self-assigned this Aug 23, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 882e2b7392

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

@jong-kyung
jong-kyung requested a review from fengmk2 August 23, 2026 08:23
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