Skip to content

feat: add default-off explanations cargo feature - #873

Merged
Anand Krishnamoorthi (anakrish) merged 2 commits into
microsoft:mainfrom
snehabandla:explain/feature-flag
Oct 28, 2026
Merged

Anand Krishnamoorthi (anakrish) merged 2 commits into
microsoft:mainfrom
snehabandla:explain/feature-flag

Conversation

@snehabandla

Copy link
Copy Markdown
Contributor

Summary

First PR in the series that splits #835 (causality reporting + partial evaluation) into small reviewable pieces. This one only adds the feature flag; it has no functionality.

  • explanations cargo feature. Default off and implies rvm. Explanations are produced by the RVM only.
  • Empty regorus::explain module. Feature-gated, with a docsrs annotation. Later PRs add the report types, provenance, tracing, and partial evaluation here.
  • CI. cargo xtask ci-* checks the std,arc,explanations feature combination. Clippy and --all-features builds already cover the feature.

Builds without the feature are unchanged.

Note: rvm needs std and arc without declaring them (this is already the case on main), so explanations has the same requirement for now.

Testing

Validated with Rust 1.95.0:

  • cargo fmt --check
  • clippy with --all-features and with --no-default-features
  • builds with --no-default-features, --features explanations, and std,arc,explanations
  • cargo test --features explanations --lib
  • OPA conformance on the CI passing list

Dependencies: none (based on main).

snehabandla and others added 2 commits October 28, 2026 02:19
Add the `explanations` feature (implies `rvm`) and an empty, feature-gated
`regorus::explain` module as the landing point for causality reports and
partial evaluation. No functionality yet.

CI coverage: `cargo xtask ci-*` checks the `std,arc,explanations` feature
combination. Clippy and
`--all-features` builds already cover it. A dedicated test step will be added
once the module has code.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@anakrish
Anand Krishnamoorthi (anakrish) merged commit c32915c into microsoft:main Oct 28, 2026
60 checks passed
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