rust-lang / rust-lang/docs.rs

Copy crate name, version with feature flags?

Open
#2,407 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.2k
Forks
232
Avg merge
11h 35m
Merged PRs (30d)
60

Description

In docs.rs, we can copy a crate's name and version to be pasted into Cargo.toml. Is there any way to include feature flags into this?

tower-http = "0.5.1" -> tower-http = { version = "0.5.1", features = ["trace"] }

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the docs.rs crate page and its existing name/version copy control, then trace how the Cargo.toml snippet is assembled. Done means the copied dependency declaration can represent the selected feature flags in the requested format.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.