Skip to content

fix(common): every feature of sourceorigin-common builds on its own - #650

Merged
PiquelChips merged 2 commits into
mainfrom
fix/646-common-features-build-alone
Nov 20, 2026
Merged

PiquelChips merged 2 commits into
mainfrom
fix/646-common-features-build-alone

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

A crate that depends on sourceorigin-common with only its admin feature didn't build: the admin views name UserAgentFamily, which lived in the events module, behind events. The workspace always enables both, so nothing caught it.

Browser, Platform and UserAgentFamily move to a private module behind admin, which events enables. admin now re-exports them, and events re-exports them as before, so nothing changes for crates that enable events.

To keep it that way, just rust features checks 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 so just validate, runs it, and so does the msrv CI job on the oldest supported Rust. It is a plain loop over 11 cargo checks, so it needs no cargo-hack.

Closes #646

Testing

  • cargo check -p sourceorigin-common --no-default-features --features admin fails on main with unresolved import crate::events at admin.rs:13, and passes here.
  • just rust features passes for all three crates.
  • cargo semver-checks -p sourceorigin-common --baseline-rev origin/main --all-features: 202 checks pass, no semver update required.
  • just validate passes.

Note

Written by Claude Opus 5.5 in Claude Code and reviewed by Claude Opus 5.5 (via T3 Code)

🤖 Generated with Claude Code

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
@PiquelChips
PiquelChips marked this pull request as draft November 20, 2026 10:38
@github-project-automation github-project-automation Bot moved this to Needs Triage in sourceorigin.dev Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 642f625d-d1d6-40a4-b652-f850c8b39395
Commits

Reviewing files that changed from the base of the PR and between 467e813 and 948bb46.

Files selected for processing: 9

  • .github/workflows/ci.yml
  • crates/common/src/admin.rs
  • crates/common/src/events/context.rs
  • crates/common/src/events/mod.rs
  • crates/common/src/lib.rs
  • crates/common/src/user_agent.rs
  • docs/dev/testing.md
  • just/rust.just
  • justfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@PiquelChips PiquelChips added the bug Something isn't working label Nov 20, 2026
@PiquelChips
PiquelChips marked this pull request as ready for review November 20, 2026 10:44
@PiquelChips
PiquelChips added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 94615d5 Nov 20, 2026
14 checks passed
@PiquelChips
PiquelChips deleted the fix/646-common-features-build-alone branch November 20, 2026 14:32
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in sourceorigin.dev Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

fix(common): every feature of sourceorigin-common builds on its own

1 participant