[FEATURE]: Dictionary of all crates

Đang mở
#87 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by reading the LS CLI command structure and how it loads or updates dictionaries; the issue does not name files or tests. Explore Cargo's local registry index and cache, plus Cargo.lock as a possible input, then decide how private registries, name synonyms, and configurable automatic updates should work. Done means users can build or update a local crate name dictionary from a chosen source.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement
Feature Description

Could be great to have dictionary of all crate names published on crates.io, with synonyms like "foo_bar" for "foo-bar" or "foo-bar-rs" and vice versa.

Use Case

Automatically all used package names are in the allow-list. Useful for package manifests like Cargo.toml as well as entire codebase.

Proposed Solution

New command in LS CLI to build or update dictionary using existing cargo' index (which in the ~/.cargo/registry/index) or maybe cache 🤷🏻‍♂️

Also probably update that dictionary automagically, but it should be configurable.

Alternative Solutions

Builtin or downloadable dictionary.

Examples

No response

Additional Context

I suppose better way is to give to user a way to index some registry (such as cargo index, or cargo cache, or just Cargo.lock) and so to build his personal local dictionary. This way supports any private registries and private crates.

Ngôn ngữ chính
Rust
Star
925
Fork
59
Merge trung bình
53 phút
Pull request đã merge (30 ngày)
10

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của blopker/codebook

Tất cả issue của blopker/codebook

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.