Skip to content

Conversation

@BrianHung
Copy link
Contributor

@BrianHung BrianHung commented Jun 10, 2025

Allows wasm-binding to listen to changes in diffs.

The original cargo build --release --verbose command fails because our codebase now includes WASM, Python, and Node.js bindings that have conflicting compilation requirements: WASM is single-threaded while native Rust is multi-threaded.

We split the build into separate steps for each binding type, using wasm-pack for WASM builds and adding required dependencies like python3-dev headers. This allows all binding types to build successfully without threading conflicts.

#380 is a downstream PR I would accept if you would also want cells to be emitted.

@BrianHung BrianHung force-pushed the event-emitter-on-diffs branch from 30922f8 to 8c0cc9b Compare June 10, 2025 23:14
@BrianHung BrianHung force-pushed the event-emitter-on-diffs branch from 8fcdd87 to 71d596b Compare June 11, 2025 00:04
BrianHung added a commit to BrianHung/IronCalc that referenced this pull request Jun 13, 2025

model.onDiffs(() => {
// React to diff list updates
redraw();
Copy link
Member

Choose a reason for hiding this comment

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

This is amazing!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BrianHung@4da4bb7
BrianHung@2f5346a

Two downstream commits I would probably merge into this PR!

I realized diffs should be emitted as a list, and we should output a diff type to allow typescript to do discriminate unions better.

@nhatcher
Copy link
Member

Hi @BrianHung is it ok if we close this in favour of #380 ?

@BrianHung
Copy link
Contributor Author

Yep; just opened this PR so if you wanted to do PR stacking, it was available (merging some PRs but not all). Closing in favor of #380.

@BrianHung BrianHung closed this Jun 29, 2025
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