FuelLabs / fuel-vm

Fuel v2 interpreter in Rust
Other
358 stars 88 forks source link

Feat/eugene/postcard bindgen #859

Closed 0xterminator closed 1 month ago

0xterminator commented 1 month ago

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

[Short description of the changes.]

Checklist

Before requesting review

After merging, notify other teams

[Add or remove entries as needed]

xgreenx commented 1 month ago

What is the purpose of this PR?=)

0xterminator commented 1 month ago

What is the purpose of this PR?=)

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

xgreenx commented 1 month ago

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

0xterminator commented 1 month ago

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 commented 1 month ago

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