add a setting to place trait impls in their own mod

Đang mở
#41 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ính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by reading the Rust code that generates custom trait implementations and find where serde::Deserialize, serde::Serialize, and schemars::JsonSchema implementations are emitted. The issue proposes grouping these implementations into modules, possibly per dependency, but leaves the grouping choice open. Done means the project has a defined setting for this and generated output places the selected implementations in the requested modules.

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

Mô tả

Custom impls for e.g. serde::Deserialize, serde::Serialize and schemars::JsonSchema can be quite voluminous; it could be nice to have those each in their own mod. I think this might look like a per-dependency mod; for example, we could say "put all serde impls into mod serde". I'm not sure if we'd do this for all or per dependency. I don't think this would include the std conversion impls`.

Ngôn ngữ chính
Rust
Star
4
Fork
4
Merge trung bình
15 giờ 16 phút
Pull request đã merge (30 ngày)
26

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 oxidecomputer/typespace

Tất cả issue của oxidecomputer/typespace

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.