Repository navigation
fix(common): every feature of sourceorigin-common builds on its own - #650
Merged
Merged
Conversation
The admin views name UserAgentFamily, which lived in the events module, so enabling admin alone failed to build. Browser, Platform and UserAgentFamily move to a private module behind admin, re-exported from admin and, as before, from events. `just rust features` checks each published crate with no features and with each feature alone; `just check` and the msrv CI job run it. Closes #646
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
A crate that depends on
sourceorigin-commonwith only itsadminfeature didn't build: the admin views nameUserAgentFamily, which lived in theeventsmodule, behindevents. The workspace always enables both, so nothing caught it.Browser,PlatformandUserAgentFamilymove to a private module behindadmin, whicheventsenables.adminnow re-exports them, andeventsre-exports them as before, so nothing changes for crates that enableevents.To keep it that way,
just rust featureschecks each published crate (sourceorigin-common,sourceorigin-crypto,sourceorigin-auth) with no features, then with each feature alone. The features are read from each manifest's[features].just check, and sojust validate, runs it, and so does themsrvCI job on the oldest supported Rust. It is a plain loop over 11cargo checks, so it needs nocargo-hack.Closes #646
Testing
cargo check -p sourceorigin-common --no-default-features --features adminfails onmainwithunresolved import crate::eventsatadmin.rs:13, and passes here.just rust featurespasses for all three crates.cargo semver-checks -p sourceorigin-common --baseline-rev origin/main --all-features: 202 checks pass, no semver update required.just validatepasses.Note
Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)
🤖 Generated with Claude Code