Commit graph

6 commits

Author SHA1 Message Date
Huang Qi
285a846af1 docs: Add editor integration guide for Rust development in NuttX
Summary:
- Added a section on editor integration for Rust development in NuttX, focusing on VS Code and rust-analyzer
- Provides steps to configure `.vscode/settings.json` to recognize Rust project structure and optional settings for custom target specifications

Impact:
- Enhances developer productivity by providing better IDE support for Rust in NuttX
- No impact on existing functionality; the guide is purely informational and configuration-based

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-02-14 13:23:13 -03:00
Huang Qi
df65980273 docs: enhance Rust guide with CPU optimization instructions
Summary:
- Added a section to the Rust guide that explains how to use the `RUSTFLAGS` environment variable to specify the target CPU for optimization.
- Provides examples and instructions for setting `RUSTFLAGS` for different CPU models, such as Cortex-M33 and Cortex-M55, to generate performance-optimized code.

Impact:
- Enhances the developer's ability to produce more efficient Rust applications on NuttX by leveraging CPU-specific optimizations.
- No runtime or functional changes; only documentation improvements to guide users in optimizing their build configurations for specific hardware.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-02-12 15:23:28 -03:00
Huang Qi
081588c1c5 docs: update rust guide to include X86 and X86_64 support
Summary:
- Updated the Rust guide documentation to include X86 and X86_64 platforms in the supported platforms list.
- Ensured that the guide provides accurate and up-to-date information for developers using these new platforms.

Impact:
- Expands the platform support section of the Rust guide, making it more inclusive and useful for a wider range of developers.
- No functional changes to the code itself; this update only affects the documentation.
- Enhances the usability of the guide by providing necessary setup and configuration details for the X86 and X86_64 architectures.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-02-12 15:23:28 -03:00
Huang Qi
de4135afdd Documentation: Update supported platforms for Rust guide
Summary:
Please refer to https://github.com/rust-lang/rust/pull/135757

- Updated the supported platforms list in the Rust guide to reflect that ARMv7-A and AArch64 are ready
- Removed the "WIP" (Work In Progress) label from ARMv7-A and AArch64 in the supported platforms section

Impact:
- Provides accurate information to developers about the current state of Rust support for ARMv7-A and AArch64 platforms
- Aligns the documentation with the latest developments in the Rust ecosystem
- No functional changes to the codebase, only documentation updates

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-21 10:59:08 +08:00
Huang Qi
685f3ab20c Documentation: Fix typo and list format in Rust guide
Summary:
- Fixed a typo in the Rust guide ("Pleae" -> "Please")
- Improved list formatting for better readability and consistency

Impact:
- Improves documentation quality and readability
- Ensures users have complete and accurate configuration information
- Maintains consistency with the actual requirements for Rust development in NuttX

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-20 17:41:52 +08:00
Huang Qi
a8ba833cde Documentation: Add Rust integration guide for NuttX
Add a new guide documenting how to integrate Rust with NuttX, including:
- Prerequisites and supported platforms
- Setup instructions for Rust toolchain
- Required NuttX configurations
- Example build and run instructions for RISCV32 target

The guide provides an experimental but working example of running
a Rust application on NuttX using the rv-virt:nsh board.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-09 15:43:10 +08:00