Skip to content

Export OptionsError for downstream builder error handling - #135

Merged
arthurprs merged 3 commits into
masterfrom
research/options-error
Nov 22, 2026
Merged

arthurprs merged 3 commits into
masterfrom
research/options-error

Conversation

@arthurprs

Copy link
Copy Markdown
Owner

OptionsBuilder::build returns the error type from a private module. Downstream users can receive the error but cannot name it in a result signature or struct field.

Reexport that existing type as OptionsError. Its identity, error behavior and existing callers stay the same; the new public name becomes an API commitment. An integration test uses it in a downstream-style Result<Options, OptionsError>, exercises invalid builder input and checks the standard error trait. That client fails with E0432 before the reexport.

Validation on upstream b971639 with Rust 1.97.1:

  • Full cargo test for default, stats, std, std+stats, sharded-lock and sharded-lock+stats configurations.
  • Exact Rust 1.95.0 library checks for those configurations.
  • Rustfmt and Clippy (-D warnings) for the default and stats library builds.
  • Stats documentation build with rustdoc warnings denied.

The existing ignored Lifecycle doctest and stats test-build dead-code warning remain visible. Local validation runs on Linux; hosted macOS/Windows jobs are separate.

@arthurprs
arthurprs marked this pull request as ready for review November 22, 2026 12:06
@arthurprs
arthurprs merged commit 9b96c11 into master Nov 22, 2026
12 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.

1 participant