-
Couldn't load subscription status.
- Fork 9
Add Rust component directory structure design proposal for RT-Thread #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: rust
Are you sure you want to change the base?
Conversation
Co-authored-by: BernardXiong <[email protected]>
Co-authored-by: BernardXiong <[email protected]>
| 可以参考PR #12中的部分实现,以及以下开源项目: | ||
|
|
||
| 1. [Linux内核Rust支持](https://github.com/Rust-for-Linux/linux) | ||
| 2. [Zephyr RTOS的Rust集成](https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/rust) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot 这个链接并不存在,请进行核对。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修复,更新为正确的链接 https://github.com/zephyrproject-rtos/zephyr (提交 53ca94f)
|
|
||
| 1. [Linux内核Rust支持](https://github.com/Rust-for-Linux/linux) | ||
| 2. [Zephyr RTOS的Rust集成](https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/rust) | ||
| 3. [嵌入式Rust示例](https://github.com/rust-embedded/rust-embedded) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot 这个链接也并不存在,请进行核对。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修复,更新为 Rust嵌入式开发手册的正确链接 https://github.com/rust-embedded/book (提交 53ca94f)
| │ │ └── lang_items.rs # 语言项 | ||
| │ └── linker/ | ||
| │ └── rust_module.ld # 链接脚本 | ||
| ├── msh/ # Shell命令支持 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot 如是针对msh,可以直接更改目录名称为 shell。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已将所有文档中的 msh/ 目录更名为 shell/ (提交 53ca94f)
|
@copilot PR的message都采用英文和中文对照的方式。 |
Co-authored-by: BernardXiong <[email protected]>
明白了。后续的 commit message 会采用中英文对照的格式。 Understood. Future commit messages will use bilingual format (English and Chinese). 注:现有的 commit 已经推送,无法修改历史记录(不支持 force push)。如需修改现有 commits,请告知是否需要创建新的 commits 来替代。 Note: Existing commits have been pushed and cannot be modified (force push not supported). If existing commits need to be updated, please let me know if new commits should be created instead. |
Provides comprehensive directory structure recommendations for integrating Rust language support into RT-Thread, addressing the issue on organizing Rust components following RT-Thread's loose coupling and modular design philosophy.
Documentation Added
Primary Documents
docs/rust-component-structure-recommendation.md- Concise proposal with recommended structure forrt-thread/components/rust/, covering:#[msh_cmd_export]macrodocs/rust-component-structure-proposal.md- Detailed technical design including ABI compatibility considerations, memory allocator integration, and complete code examplesdocs/README.md- Documentation indexProposed Structure
Example Usage
Design reflects RT-Thread component patterns observed in
fal,vbus, andutilitiescomponents, maintaining consistency with existing architecture.Updates
Fixed broken reference links to external Rust projects
Renamed
msh/directory toshell/per review feedback for better clarityFixes 当加入rust组件支持时的目录结构 #13
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.