-
Notifications
You must be signed in to change notification settings - Fork 15
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] Support creating host functions from closures #20
Conversation
Signed-off-by: Xin Liu <sam@secondstate.io>
…ction::create_with_data` Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
…ync_closure` Signed-off-by: Xin Liu <sam@secondstate.io>
… in `ImportObjectBuilder` Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
…siModule` Signed-off-by: Xin Liu <sam@secondstate.io>
…inModuleBuilder` Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
…inModuleBuilder` Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
…_host_function` Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
…dule` Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
…dule` and `PluginModule` Signed-off-by: Xin Liu <sam@secondstate.io>
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR. Overall Summary: The patch introduces multiple changes to add support for creating host functions from closures in the The patch introduces new dependencies that might cause compatibility issues or increase the project's size. The implementation of It is recommended that further review and improvement is done to address these potential problems and ensure the code is maintainable and robust. DetailsCommit 2304ccbdfd45713975369868e2a5c40aafee6ac3Key changes:
Potential problems:
Overall, the patch introduces a new feature to create async host functions from closures. However, it needs further review and improvement to address potential problems and ensure the code is maintainable and robust. Commit 58a673809a372cce020dd7ff71d8ddb4bf1aa38dKey changes:
Potential problems:
Commit 5c289bd7aecc08c85f59ab695c8421ac770e444dKey changes:
Potential problems:
Overall, the patch seems to be removing a specific feature from the Commit ee58b39cf8215941cfa7cbfc274a9a5428ec5997Summary of key changes:
Potential problems:
Overall, the changes look good and provide useful functionality for creating host functions from closures. Commit b296a1baa3a38b2f5a83fcb2582d4acaa6fac6aeKey changes:
Potential problems:
Commit 2a8ec9096470a3bb0eed28efc5c27439f626640dKey changes:
Potential problems:
Overall, the changes seem to focus on updating the CI workflow for the Rust SDK, possibly to improve stability or ensure consistent test results. However, more context is needed to fully assess the impact of these modifications. Commit 80d2c44c2225c0352ed38c3c14bc4c651cbf4c9aKey Changes:
Potential Problems:
Commit 47a2d9bfe4ba4da976141dcd83e6f27aea9620faKey changes:
Potential problems:
Commit bb3d302f206854feaadccb69620b1b0c7e871470Summary: The patch adds new APIs to the The key changes in the patch include:
Potential Problems:
Commit e05df22235701d63271c4415280b6edde74699d9The key changes in this pull request are:
Potential problems:
Commit 6da86980ca563391d3b3e9a4e6ab3d31036e63ecKey changes in this pull request:
Potential problems:
Commit 20e2abf1d19009bb20c6f5c944fe6da6a8aeda61The key change in this patch is the refactoring of the A potential problem with this change is that the removal of the Other than that, the patch mainly consists of code removals and some minor changes to example code and tests. Commit 230cc19f516e98dea20b3e8ff5e6f79a2a37b6a9Key changes:
Potential problems:
Recommendation:
Commit c29f49b3a95374aa9b1e7b184644597c034be38dKey Changes:
Potential Problems:
Commit c3893816d78de43df8a6538b1e6e0a44888ace68Key changes:
Potential problems:
Overall, the patch appears to mostly involve removing unused imports, but the removal of Commit 6e19df79b561da3b9f4bfc378f1f1af57567c6e1Key Changes:
Potential Problems:
Overall, more documentation and context are needed to understand the purpose and implications of these changes. Commit 5efde4dd0012667d230385f0b78a793ec38627c7Key changes:
Potential problems:
Overall, the removal of code without clear justification or context raises concerns about the impact on the functionality of the codebase. It would be helpful to have more information and context regarding this change. Commit eee34b0e3035df9b3478c1cd68edf4c4708ecc97Key changes:
Potential problems:
Commit 0f25848127b45abdff2a816b5458aeefba2936c9Key changes in the patch:
Potential problems:
Commit 4e419d65a33ba239b18fa23a10de7d5f43d55ebdThe key changes in this patch include:
Potential problems:
Overall, this patch seems to introduce some changes related to types and imports in the codebase. It would be helpful to have more context or additional patches to fully understand the impact and purpose of these changes. Commit f3b461a8d6bf6e3c176796e575004c34bf2ae841Summary of key changes:
Potential problems:
Please note that a more comprehensive review might require additional context and information about the purpose and usage of the modified code. Commit 0924d979d06742f383c1006de3da84cbab1edaecKey changes:
Potential problems:
Commit a4715b19a1dfdbf02a9b7b0ff8770aa1e3a8d17fKey changes:
Potential problems:
Commit 6e69bd51acb834ddce067d23dbe65cc5526bbc4aKey Changes:
Potential Problems:
Commit 5f0ae871f18edadb29e249f163f04c9ff6c3f105Key changes:
Potential problems:
Overall, further review and clarification are needed to fully assess the changes and potential problems. Commit 97e6dd4f45976074bec1be02dae3895611e5a445Key changes:
Potential problems:
Overall, the addition of the Commit 3229b3fc6556ebf3f1d1a852e0d414384949ecc6Key changes in the patch:
The most important finding is that the patch mainly consists of formatting changes and reordering import statements. These changes do not affect the functionality of the code. Commit 8f8381f736c78767809681c1928a2342a5231529Key changes:
Potential problems:
Commit 3c11037de6c64b3b3f21fbcbbaff42c164bfc8acKey changes:
Potential problems:
Overall, the changes seem to be introducing support for creating host functions from closures in the Commit 78b37b0447206feb19ba17d69d123509f1f3052cKey changes:
Potential problems:
Additional observations:
Commit 550b3b9dba8eb1fc30a2de1bad0419aaa5981831Key changes:
Potential problems:
Overall, the code changes seem to introduce potential problems, mainly related to concurrency issues and breaking existing code. These issues should be addressed before merging the pull request. Commit 07431b75265c964ae64fff5ce27e0b8522be54d0Key changes:
Potential problems:
Commit 318c9e1bcd5f4c2a28c4ca9fd5781b7c38b4a01eKey Changes:
Potential Problems:
Commit ec946dd83da80f3c147e6e3c8be8c5f0db580ef6Key Changes:
Potential Problems:
Overall, the main change is the removal of debugging code. This should not affect the functionality of the code, but it might make troubleshooting and debugging more difficult in the future. It would be helpful to have more context and explanations in the comments to understand the reasoning behind these changes. Commit f0477077c26190c888a60e45e3a9acd0b13f1693Key Changes:
Potential Problems:
Commit 4d9616c214b970337b29824d68faae46d2558cd6Key changes:
Potential problems:
Overall, more information and context should be provided to better understand the motivations and implications of these version bumps. Commit 1614292b8b1b13128dc60fb224f1cb64f7608eccKey changes:
Potential problems:
Overall, it is necessary to carefully review the changes made in this version update and ensure that they are properly tested and do not introduce any issues. Commit 66fee7d359cc1e484ff0511f0f62763cf4754e14Key changes:
Potential problems:
Overall, the changes seem to be related to removing memory handling from the module structs and modifying the drop behavior for registered host functions. The impact of these changes should be reviewed and validated to ensure they do not introduce any issues. |
@L-jasmine Could you please help review this PR? Thanks a lot! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this modification is intended for backward compatibility with the old version of the API, but the old version of the API has some hidden issues, this PR will also introduce some code that can pass the compilation check but shouldn't have passed. It is necessary to fix these issues in subsequent PRs as soon as possible.
@L-jasmine Thanks for the review! |
In this PR, the APIs for creating host functions are updated. Some relevant types are also refactored for the changes.