Skip to content

Update the Tsify dependency - #4600

Merged
TrueDoctor merged 1 commit into
GraphiteEditor:masterfrom
0HyperCube:update-tsify
Nov 5, 2026
Merged

TrueDoctor merged 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 Resolved
Comment thread proc-macros/src/editor_commands.rs Resolved
Comment thread proc-macros/src/editor_commands.rs Resolved
@TrueDoctor
TrueDoctor enabled auto-merge November 5, 2026 17:53
@TrueDoctor
TrueDoctor added this pull request to the merge queue Nov 5, 2026
Merged via the queue into GraphiteEditor:master with commit df1309f Nov 5, 2026
14 checks passed
@Keavon Keavon changed the title Update tsify Update the Tsify dependency Nov 5, 2026
Keavon pushed a commit that referenced this pull request Nov 5, 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.

2 participants