Skip to content

[Repo Assist] chore: add rust-version, repository, homepage, and readme to Cargo.toml#173

Draft
github-actions[bot] wants to merge 1 commit intomainfrom
repo-assist/eng-cargo-metadata-2026-05-01-e5f91588df51cce3
Draft

[Repo Assist] chore: add rust-version, repository, homepage, and readme to Cargo.toml#173
github-actions[bot] wants to merge 1 commit intomainfrom
repo-assist/eng-cargo-metadata-2026-05-01-e5f91588df51cce3

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 1, 2026

🤖 This PR was created by Repo Assist, an automated AI assistant.

What

Adds four standard fields to the [package] section of Cargo.toml:

rust-version = "1.86"
homepage     = "https://github.com/shanselman/winget-tui"
repository   = "https://github.com/shanselman/winget-tui"
readme       = "README.md"
```

No code changes.

## Why

### `rust-version`

`ratatui 0.30` — the most constrained direct dependency — declares `rust-version = "1.86.0"`. Without a matching declaration in this crate, `cargo` will silently attempt to compile on older toolchains and fail with a confusing dependency error rather than a clear MSRV message. Declaring `rust-version = "1.86"` gives users and CI a fast, clear failure if the toolchain is too old.

### `repository` / `homepage`

These are standard Cargo metadata fields used by:
- **deps.rs** and **lib.rs** to link back to the source
- **cargo doc** to generate a source link in the documentation
- Any future crates.io publish

Both point to the GitHub repo, consistent with what users would expect.

### `readme`

Points `cargo doc` and crates.io tooling at the existing `README.md`. Without it, documentation-generation tools may not pick up the project description.

## Test Status

```
cargo check --all-targets  → clean
cargo fmt -- --check       → clean
cargo clippy -- -D warnings → clean
cargo test                 → 231 passed (unchanged — no code changes)

Generated by Repo Assist · ● 4.8M ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@cbb46ab386962aa371045839fc9998ee4e97ca64

Declares the minimum supported Rust version (1.86, set by ratatui 0.30)
and adds standard package metadata fields.

- rust-version = "1.86": prevents accidental compilation on Rust versions
  too old to build the ratatui 0.30 dependency
- repository / homepage: standard fields; improves discoverability when
  the crate is indexed or displayed (e.g., deps.rs, lib.rs)
- readme = "README.md": points tooling (cargo doc, crates.io) at the
  existing README

No code changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants