Skip to content

Limit the number of crate features that are displayed as result of cargo add #12617

@ranile

Description

@ranile

Problem

Some crates have way too many features (such as web-sys). cargo add lists every feature when adding a crate and could potentially even overflow terminal buffer (it just did for me with web-sys using console)

Proposed Solution

Limit the number of features that are displayed. The limit should preferably be configurable but a hard-coded one is also fine.

If the feature list is truncated, cargo should link to docs.rs feature list for that crate

Notes

No response

Metadata

Metadata

Assignees

Labels

C-bugCategory: bugCommand-addS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions