Skip to content

Conversation

@webmaster128
Copy link
Member

This is a follow up to 5ab586b. The realisation here is that the imports are only used by exports. No other user of cosmwasm-std than calls of a VM into a contract can use them. This PR does a few small things

  • Rename make_dependencies to deps_from_imports to express that the resulting OwnedDeps is implemented through imports
  • Make deps_from_imports non-public because only exports use it
  • Unpublish ExternalApi, ExternalQuerier and ExternalStorage which are only used by deps_from_imports and exports
  • Move deps_from_imports to the end of the file again

This then allows us to deactivate all imports and all exports even for target=wasm32-unknown-unknown which later can solve #1962.

@webmaster128 webmaster128 requested a review from chipshort May 5, 2025 16:42
@webmaster128 webmaster128 force-pushed the unpublish-External-deps branch from 1cf1772 to a34aae5 Compare May 5, 2025 16:50
Copy link
Contributor

@chipshort chipshort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice realization!

@webmaster128 webmaster128 merged commit af40836 into main May 6, 2025
33 checks passed
@webmaster128 webmaster128 deleted the unpublish-External-deps branch May 6, 2025 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants