hyperlight-dev / hyperlight-dev/hyperlight

Consider renaming files named `mod.rs/x86_64.rs/aarch64.rs` to more unique filenames

Đang mở
#1,762 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
lifecycle/needs-review
Ngôn ngữ chính
Rust
Star
4.7k
Fork
208
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
47

Mô tả

Having multiple files with same name makes it annoying to search and find specific files.

For the `x86_64.rs/aarch64.rs` files (example `src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs`) we could put them in a folder with that name instead (as we already do in certain places for example `src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs`).

For mod.rs file we can consider moving to the newer rust module convention which uses less mod.rs files.

I'm not saying all existing files must be renamed and are all bad, but I personally would like a bit more uniqueness

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by inventorying the `mod.rs`, `x86_64.rs`, and `aarch64.rs` files, including `src/hyperlight_host/src/hypervisor/hyperlight_vm/x86_64.rs`, and compare them with `src/hyperlight_host/src/hypervisor/regs/x86_64/special_regs.rs`. Determine which files can use the newer Rust module convention and which architecture files should move into uniquely named directories. Done means the agreed renames are applied consistently without breaking the project checks.

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

Đánh giá

Công nghệ
rust
Lĩnh vực
developer-experience, operating-systems
Loại issue
Tái cấu trúc
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

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.