Finschia / cosmwasm

Fast and reusable WebAssembly smart contract runtime(and library) for finschia-sdk.
Apache License 2.0
27 stars 14 forks source link

feat: add import&export macro and serialized data copy pass #157

Closed brew0722 closed 2 years ago

brew0722 commented 2 years ago

Description

Closes #153

please note:

And, Please The dynamic_link poc PR(#153) first. This PR is based on #153.

153 must be merged first before this PR can be reviewed.

Types of changes

Checklist

brew0722 commented 2 years ago

force pushed because it based on PR #153, and PR#153 is squash merged now. So I rebased for that.

brew0722 commented 2 years ago

There are many format! to make code strings. Use quote! instead of them. https://doc.rust-lang.org/proc_macro/macro.quote.html

I refactored that using the quote! and proc_macro2. please review again. (thanks good suggestion! The reason I did not use it before was because I was don't know with how to use quote! for repeatation.)