-
Notifications
You must be signed in to change notification settings - Fork 280
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: make Module::imports be pub
#573
feat: make Module::imports be pub
#573
Conversation
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.
LGTM Also in Wasmtime this exact same API is also public.
This PR is missing re-exporting the type |
BENCHMARKS
|
@Robbepop Hi, I will export it later. |
df41863
to
a405c10
Compare
I will create a PR to fix the |
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.
Changes I'd like to see before we merge:
Since ModuleImport
is going to be pub
now we should clean up its API, too.
We should make its new
constructor as well as its name
method pub(crate)
. This way we can also remove ModuleImportName
from the public re-exports and shrink the wasmi
API surface again. The field
and module
method getters should be sufficient.
Codecov Report
@@ Coverage Diff @@
## master #573 +/- ##
=======================================
Coverage 80.04% 80.04%
=======================================
Files 78 78
Lines 6323 6323
=======================================
Hits 5061 5061
Misses 1262 1262
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Ok. I'm updating it. |
4491577
to
3f39656
Compare
I don't understand what you mean by this? What are "params in vec style" for This might be better done in a separate PR if at all. |
Ok. Yes, I'll try it first and then make a new PR |
@Robbepop I do not know how to fix it:
I think it's not private. |
You should be able to fix it by adding the following two lines of doc comments: ///
/// [`Global`]: [`crate::Global`] |
If we want to create stub function, we must need to know the imports info.
I think substrate also need this method to do
prepare_import
like wasmtime.