Skip to content

feat: add From<Ts<T>> for JsValue - #84

Merged
madonoharu merged 4 commits into
madonoharu:mainfrom
hgiesel:feat/js-value-from-ts
Aug 16, 2026
Merged

feat: add From<Ts<T>> for JsValue#84
madonoharu merged 4 commits into
madonoharu:mainfrom
hgiesel:feat/js-value-from-ts

Conversation

@hgiesel

@hgiesel hgiesel commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This fixes an issue where async fns cannot be compiled with #[wasm_bindgen].

@cormacrelf

Copy link
Copy Markdown
Contributor

Could you add a test that shows async functions compile?

madonoharu and others added 2 commits August 17, 2026 07:32
Async fns return through `IntoJsResult`, which only `Into<JsValue>` can
satisfy; the bare, `Result`, and `Option` shapes each exercise a distinct
impl path enabled by `From<Ts<T>> for JsValue`. All three fail with E0277
without that impl.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@madonoharu
madonoharu merged commit ce2ffbd into madonoharu:main Aug 16, 2026
3 checks passed
@madonoharu madonoharu mentioned this pull request Aug 17, 2026
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.

3 participants