generator icon indicating copy to clipboard operation
generator copied to clipboard

How to do it for WASM

Open arn-the-long-beard opened this issue 3 years ago • 0 comments

Hello guys :smile: !

I am using rust on front_end with Wasm and I cannot use reqwest in this context because I need maximum optimization regarding the size of the compiled code and I do have my own client to use from my front end framework.

Your job is amazing by the way :smile: but I have challenges to understand the flow because new to this, so I have few questions after I show my requirements:

Here are the challenges:

  • Need to use custom client with the use of http-types. ( I can help with that )
  • Need to use massively feature gates like in web_sys so we do compile only the Apis we will use ( we need to minimize the size of the compiled code ) for the front end.

Now the questions :wink: :

    1. Should I contribute to you project to add the custom client and the feature gates requirements ?
    1. Maybe adding these new features are not possible and requires massive changes, so should/could I write my own project and generate the Apis myself and optimize it for Wasm? ( I really would like to do this one )
    1. Do you have any ideas or recommendation ? I am very new to this type of Apis, and I am not familiar with Code generation.
    1. Do you have resources that explains how the code generation is working ?

Thanks :wink: !

arn-the-long-beard avatar Apr 21 '21 08:04 arn-the-long-beard