Repository navigation
Move the base64 helper out of keymanager so spki stays off the module cycle - #389
Merged
Merged
Conversation
… cycle spki imported the base64 helper from keymanager, and keymanager sits on the large top-level module cycle, so the spki -> keymanager reference pulled spki onto it (net -> spki closes it) and tripped the module-cycle ratchet added in #387. The helper references no other crate module, so it now lives in its own leaf module, crate::b64, with its behaviour and test unchanged. keymanager and spki both import it from there; spki and b64 stay outside the cycle and the ratchet baseline is untouched. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PUkd69QzFciCfQucbfiyKv
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.
Problem: main is red. spki.rs imported
keymanager::b64, keymanager is on the big top-level module cycle, andnet -> spkicloses it, so the module-cycle ratchet (#387) fails withmodule(s) newly on a cycle: 'spki'.Fix: the base64 helper references no other crate module, so it moves unchanged into a new leaf module
crate::b64. keymanager and spki import it from there. Cycle stays at 44 modules; spki and b64 sit outside it. The ratchet baseline is not touched (it only prints a notice that outside-cycle count rose 12 to 14).Gates (committed tree, status empty before and after):
python3 ci/check-module-cycle.py: ok (44 on cycle, baseline 44)python3 ci/test_module_cycle.py: 18 tests OKmake check:test result: ok. 5583 passed; 0 failed; 7 ignored, exit 0CARGO_INCREMENTAL=0 cargo +nightly check --manifest-path rust-modules/Cargo.toml --lib --no-default-features: Finished🤖 Generated with Claude Code
https://claude.ai/code/session_01PUkd69QzFciCfQucbfiyKv