Skip to content

chore: add reusable adapter template#299

Merged
EffortlessSteven merged 1 commit into
mainfrom
feat/v0.5.0-adapter-template
Mar 25, 2026
Merged

chore: add reusable adapter template#299
EffortlessSteven merged 1 commit into
mainfrom
feat/v0.5.0-adapter-template

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Closes #275

Summary

  • Add docs/how-to/adapter-template.md with reusable checklist for new adapter crates
  • Add adapter-template how-to link in docs/README.md
  • Add adapter-specific contribution checklist in CONTRIBUTING.md

Validation

  • cargo xtask docs-sync --check

@coderabbitai

coderabbitai Bot commented Mar 25, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@EffortlessSteven has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 1 minutes and 18 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: e942ba0c-9dba-4993-afe9-c03422727bbb

📥 Commits

Reviewing files that changed from the base of the PR and between c90b9f4 and d0fbc47.

📒 Files selected for processing (3)
  • CONTRIBUTING.md
  • docs/README.md
  • docs/how-to/adapter-template.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/v0.5.0-adapter-template

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the project's documentation by introducing a standardized process for developing new adapter crates. It provides a comprehensive template and integrates it into the existing contribution guidelines and documentation index, ensuring consistency and ease of development for future adapter implementations.

Highlights

  • New Adapter Template Documentation: A new document, docs/how-to/adapter-template.md, has been added, providing a reusable checklist for creating new adapter crates.
  • Documentation Index Update: The main documentation README.md has been updated to include a link to the new adapter template how-to guide.
  • Contribution Guidelines Enhancement: The CONTRIBUTING.md file now includes an adapter-specific contribution checklist, guiding developers on adding new adapter crates.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces comprehensive documentation and guidelines for adding new adapter crates to the uselesskey project. It includes a new detailed "Adapter scaffold template" document (docs/how-to/adapter-template.md), links to it from the main docs/README.md, and adds a summary of the process to CONTRIBUTING.md. The review feedback suggests a minor improvement for consistency in placeholder usage within the new adapter template documentation to enhance clarity for contributors.

- [ ] Add one smoke test in `tests/` that exercises the primary conversion trait.
- [ ] Add one integration-style test for a realistic downstream use of the native
type (not property-coverage tests).
- [ ] Add one runnable example under `crates/<crate>/examples/`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For consistency with other parts of this guide (lines 11-12) and CONTRIBUTING.md, it would be clearer to use the uselesskey-<adapter> placeholder here instead of the more generic <crate>. This will help ensure the path format is unambiguous for contributors.

Suggested change
- [ ] Add one runnable example under `crates/<crate>/examples/`.
- [ ] Add one runnable example under `crates/uselesskey-<adapter>/examples/`.

@EffortlessSteven EffortlessSteven force-pushed the feat/v0.5.0-adapter-template branch from e3a4d16 to d0fbc47 Compare March 25, 2026 10:20
@EffortlessSteven EffortlessSteven merged commit 54900c5 into main Mar 25, 2026
4 checks passed
@EffortlessSteven EffortlessSteven deleted the feat/v0.5.0-adapter-template branch April 3, 2026 03:45
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.

chore: add reusable adapter template

1 participant