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

Setting up WASM logging in diplomat-runtime #346

Merged
merged 4 commits into from
Oct 19, 2023

Conversation

robertbastian
Copy link
Collaborator

No description provided.

@@ -5,13 +5,22 @@ let wasm;

const imports = {
env: {
log_js(ptr, len) {
console_debug_js(ptr, len) {
Copy link
Contributor

@Manishearth Manishearth Oct 18, 2023

Choose a reason for hiding this comment

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

this is a bit of a breaking change, no?

might be ok since we don't have users of the JS backend

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It depends how diplomat-runtime is versioned wrt diplomat-tool. I'm changing both sides of the FFI here, so it should not be breaking.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah the problem is someone using icu4x would get an automatic update of diplomat-runtime. This may be an acceptable thing to break for now since JS is still very iffy (cc @sffc?) and the logging isn't proprely hooked up.

Also can we scope it as diplomat_console_...?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah this is breaking, but releasing major diplomat versions is not a lot of work.

Copy link
Contributor

Choose a reason for hiding this comment

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

sgtm

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather fix JS than go out of our way to make it backwards compatible with clients I don't think we have right now.

@robertbastian robertbastian merged commit 2a52612 into rust-diplomat:main Oct 19, 2023
4 of 5 checks passed
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