Skip to content

Migrate from mod.rs to modern module file naming convention #56

@itstrivial

Description

@itstrivial

Summary

The project currently uses the older mod.rs convention for module files.
Since Rust 1.30, the recommended approach is to use module_name.rs instead.

Current State

There are 14 mod.rs files in the project, e.g.:

  • kernel/src/drivers/mod.rs
  • kernel/src/memory/mod.rs
  • shared/common/src/enums/mod.rs

Proposed Change

Rename according to the modern convention.

Example:

  • drivers/mod.rsdrivers.rs
  • drivers/keyboard/mod.rsdrivers/keyboard.rs

Reference

https://doc.rust-lang.org/reference/items/modules.html#module-source-filenames


I'm ready to work on this if necessary.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions