Revisit `default` and `full` feature flags in cot

Đang mở
#720 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
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
build-system

Hướng nghiên cứu

Start by locating the cot crate's feature declarations and the project template that enables full, then compare which features each flag enables. Decide which features belong in default based on the stated goal of covering the needs of 95% of users, and verify that full still enables the intended set. The issue gives no tests or acceptance list, so confirm the proposed split with maintainers before changing the flags.

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

Mô tả

C-lib good first issue

The default-features in the cot crate enable quite a lot of stuff that might not be useful for a lot of people - for example, it enables all database backends even though the user might only be interested in one (or maybe two).

We already have a full feature flag that enables almost everything and is used by default in the project template. I think that we should only enable stuff useful for 95%+ of the people in default, and keep the rest in full.

We should do this by the time we release 1.0, as changing default will be a breaking change.

Ngôn ngữ chính
Rust
Star
1.1k
Fork
57
Merge trung bình
17 giờ 39 phút
Pull request đã merge (30 ngày)
12

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 cot-rs/cot

Tất cả issue của cot-rs/cot

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.