Skip to content

feat: add public Refdb type #1228

Merged
weihanglo merged 3 commits intorust-lang:masterfrom
bordumb:bordumb/refDbType
Apr 20, 2026
Merged

feat: add public Refdb type #1228
weihanglo merged 3 commits intorust-lang:masterfrom
bordumb:bordumb/refDbType

Conversation

@bordumb
Copy link
Copy Markdown
Contributor

@bordumb bordumb commented Mar 27, 2026

Overview

This is a followup PR to this one:
#1221

Specifically addressing the comment from @ehuss here:
#1221 (review)

2 additions:

  • The aim is to add a common interface for interacting with the reference database, introducing a dedicated Refdb type rather than exposing refdb operations solely as convenience methods on Repository
  • Add 1 additional feature set_refdb() as an example of how this new interface make extending it easier

1 change:

  • Renamed Refdb to RefdbMarker to avoid confusion with the new public Refdb type in refdb.rs; this is just a lifetime marker, not a user-facing type

…, and delegate Repository::refdb_compress() to it
@rustbot rustbot added the S-waiting-on-review Status: Waiting on review label Mar 27, 2026
Comment thread src/repo.rs
Copy link
Copy Markdown
Member

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.
@bordumb let us know if you want to address the nit or not.

View changes since this review

Comment thread src/repo.rs
@bordumb
Copy link
Copy Markdown
Contributor Author

bordumb commented Apr 20, 2026

Thanks. @bordumb let us know if you want to address the nit or not.

View changes since this review

I've addressed the nit

Please let me know what you think.

Thanks!

Copy link
Copy Markdown
Contributor

@DanielEScherzer DanielEScherzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, thanks

View changes since this review

Copy link
Copy Markdown
Member

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@weihanglo weihanglo added this pull request to the merge queue Apr 20, 2026
Merged via the queue into rust-lang:master with commit c97a125 Apr 20, 2026
7 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Waiting on review label Apr 20, 2026
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.

4 participants