镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Update tsify - #4600

Open
0HyperCube wants to merge 1 commit into
GraphiteEditor:masterfrom
0HyperCube:update-tsify
Open

0HyperCube wants to merge 1 commit into
GraphiteEditor:masterfrom
0HyperCube:update-tsify

Conversation

@0HyperCube

@0HyperCube 0HyperCube commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

All of the #[tsify(into_wasm_abi, from_wasm_abi)] was deprecated in a patch release to avoid memory leaks when the type conversions fail. src: https://github.com/madonoharu/tsify#why-are-the-wasm_abi-attributes-deprecated

The replacement involves passing a Ts<MyStruct> or Vec<Ts<MyStruct>> and then converting it in you rust code. An error message is logged if the conversions fail and the function returns early.

This unfortunately requires further complicating the #[editor_commands] macro.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 10 files

Tip: cubic used a learning from your PR history. Let your coding agent read cubic learnings directly with the cubic MCP.

Re-trigger cubic

Comment thread frontend/wrapper/src/editor_wrapper.rs Outdated
Comment thread proc-macros/src/editor_commands.rs Outdated
Comment thread proc-macros/src/editor_commands.rs Outdated
@0HyperCube
0HyperCube force-pushed the update-tsify branch 2 times, most recently from 3ffc488 to 638881a Compare September 25, 2026 15:41

This branch has not been deployed

No deployments
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