Skip to content
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

examples: New app to build Rust with Cargo #2487

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 23, 2024

  1. examples: New app to build Rust with Cargo

    Build Rust applictions with cargo is the most commn way,
    and it's more easy to cooporate with Rust ecosystem.
    
    This example shows how to use cargo to build a simple hello world
    application.
    
    And please notice that you need to install nighly version of rustc
    to support this feature, any version after rust-lang/rust#127755
    is merged, can use NuttX as cargo target directly.
    
    Build
    -----
    
    To build hello_rust_cargo application, you can use any target that based
    on RISCV32IMAC, for example:
    ```
    cmake -B build -DBOARD_CONFIG=rv-virt:nsh -GNinja .
    ```
    
    And disable ARCH_FPU in menuconfig, since the hard coded target triple
    in this demo is `riscv32imac`.
    
    Signed-off-by: Huang Qi <[email protected]>
    no1wudi committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    dd3e0c8 View commit details
    Browse the repository at this point in the history