hyperlight-dev / hyperlight-dev/hyperlight

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

未关闭
#1,762 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
lifecycle/needs-review
主要语言
Rust
星标
4.7k
派生
208
平均合并
1 天 7 小时
30 天内合并 PR
47

描述

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

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
developer-experience, operating-systems
Issue 类型
重构
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。