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

Feat/eugene/postcard bindgen #859

Closed
wants to merge 3 commits into from

Conversation

0xterminator
Copy link

[Link to related issue(s) here, if any]

[Short description of the changes.]

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • If performance characteristic of an instruction change, update gas costs as well or make a follow-up PR for that
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

[Add or remove entries as needed]

@xgreenx
Copy link
Collaborator

xgreenx commented Oct 16, 2024

What is the purpose of this PR?=)

@0xterminator
Copy link
Author

What is the purpose of this PR?=)

It is just a draft, I am experimenting with adding postcard to js bindings.

@xgreenx
Copy link
Collaborator

xgreenx commented Oct 16, 2024

Why do you need it?=) You can use from_json and to_json function in WASM, if you want to

@0xterminator
Copy link
Author

Why do you need it?=) You can use from_json and to_json function in WASM, if you want to

I know, but what we want to see is whether we can attach this crate https://github.com/teamplayer3/postcard-bindgen so we generate for all structures that we want to stream over nats ser/deser functionalities using postcard and also have an auto-generated npm package for our ts-sdk (fuel-systems_) in order to have 1:1 serialization/deserialization of the same structures.

@0xterminator
Copy link
Author

Closing as this research did not lead to the desired effect @pedronauck

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