Repository navigation
fix: the hash groups are sub-modules (mwrap-3.6.8.1) - #1
Merged
Merged
Conversation
…c name them (mwrap-3.6.8.1) Until now each group was a partition of the root (mcpplibs.mwrap.mbedtls:sha256), so the README's `import mcpplibs.mwrap.mbedtls.sha256;` did not compile: an importer could only take the root. Each group is now its own module and the root re-exports the six; tests/submodule_test.cpp imports sha256 alone. A consumer met this combining the wrap with the first real use (xgit).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Each hash group is now its own module —
mcpplibs.mwrap.mbedtls.sha256,.sha512,.sha1,.md5,.sha3,.md— and the rootmcpplibs.mwrap.mbedtlsre-exports the six.Why
Until now the groups were partitions of the root (
export module mcpplibs.mwrap.mbedtls:sha256;), so an importer could only take the root. The README (import mcpplibs.mwrap.mbedtls.sha256;) and the mwrap spec (root module + sub-modules,mcpplibs.mwrap.<lib>.<group>) both say otherwise; the first consumer to try the sub-module (xgit) gotmodule 'mcpplibs.mwrap.mbedtls.sha256' not found.Changes
tools/generate.pywritesexport module mcpplibs.mwrap.mbedtls.<group>;; the sixsrc/*.cppmregenerated (--checkok in CI).src/mbedtls.cppm:export import mcpplibs.mwrap.mbedtls.<group>;for the six.tests/submodule_test.cpp: imports.sha256alone, one-shot and streaming.mcpp.toml: version3.6.8.1(a wrapper revision: one digit after the upstream version, per the mwrap rule); the description names the sub-module form..tmp_tt.py(a leftover scratch script) removed.Verification
mcpp testlocally: 4 programs (api_test,header_mix_test,linked,submodule_test), all ok.Authorship: ai-and-human