Introduce unified Rust domain registrar abstraction with provider fallback semantics#1
Draft
Copilot wants to merge 4 commits into
Draft
Introduce unified Rust domain registrar abstraction with provider fallback semantics#1Copilot wants to merge 4 commits into
Copilot wants to merge 4 commits into
Conversation
Agent-Logs-Url: https://github.com/trydirect/registrar/sessions/67657097-b19c-4c9e-80e6-e62c4f364ee4 Co-authored-by: vsilent <42473+vsilent@users.noreply.github.com>
Agent-Logs-Url: https://github.com/trydirect/registrar/sessions/67657097-b19c-4c9e-80e6-e62c4f364ee4 Co-authored-by: vsilent <42473+vsilent@users.noreply.github.com>
Agent-Logs-Url: https://github.com/trydirect/registrar/sessions/67657097-b19c-4c9e-80e6-e62c4f364ee4 Co-authored-by: vsilent <42473+vsilent@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add unified domain registrar library
Introduce unified Rust domain registrar abstraction with provider fallback semantics
May 26, 2026
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.
This PR establishes a unified domain registrar library so callers can interact with multiple registrar providers through one API. It standardizes availability checks, registration flow, and failure handling across providers.
Core API
DomainRegistrartrait for provider implementations:name()is_domain_available(domain)register_domain(domain, years)UnifiedRegistraras orchestration layer overVec<Box<dyn DomainRegistrar>>.Unified routing behavior
is_domain_availablereturnstrueif any provider reports availability.register_domainattempts registration against available providers in order and falls back on provider failure.Error model and guardrails
NoRegistrarsConfiguredInvalidRegistrationPeriod(u8)(enforces1..=10)DomainUnavailableProviderFailure(String)Library docs
Original prompt