Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make perspective-viewer crate importable for external wasm projects #1916

Merged
merged 1 commit into from
Jul 26, 2022

Conversation

texodus
Copy link
Member

@texodus texodus commented Jul 25, 2022

A refactoring of @finos/perspective-viewer to make it nearly possible to import as a pure-rust crate and re-use in a WebAssembly-targetting Rust application. The qualifier "nearly" is important, as neither trunk nor wasm-pack can currently build perspective-viewer as a dependency. This is due to the lack of a way to reference wasm_bindgen generated JavaScript symbols from Rust without the assistance of a bundler aware of this "bootstrapping". perspective-viewer can be built with the define_web_components_async feature to build without the assistance of external JavaScript.

When bootstrapping is possible (presumably in the future?), this work will enable #1892

@texodus texodus force-pushed the rust-perspective-viewer branch from 58e3d1e to 67f2717 Compare July 26, 2022 16:19
@texodus texodus added the internal Internal refactoring and code quality improvement label Jul 26, 2022
@texodus texodus changed the title Make perspective-rust crate importable for external wasm projects Make perspective-viewer crate importable for external wasm projects Jul 26, 2022
@texodus texodus force-pushed the rust-perspective-viewer branch from 67f2717 to 27e355c Compare July 26, 2022 17:44
@texodus texodus merged commit 0a8da0b into master Jul 26, 2022
@texodus texodus deleted the rust-perspective-viewer branch July 26, 2022 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal refactoring and code quality improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant