{"id":20316071,"url":"https://github.com/lupyuen/rust-nuttx","last_synced_at":"2025-04-11T17:40:45.442Z","repository":{"id":87767166,"uuid":"446609526","full_name":"lupyuen/rust-nuttx","owner":"lupyuen","description":"Rust Stub Library for Apache NuttX OS","archived":false,"fork":false,"pushed_at":"2022-03-21T23:41:26.000Z","size":11,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T13:39:45.810Z","etag":null,"topics":["bl602","lora","nuttx","pinecone","pinedio","riscv32","rust","rust-embedded"],"latest_commit_sha":null,"homepage":"https://lupyuen.github.io/articles/rust2","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lupyuen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["lupyuen"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/lupyuen"]}},"created_at":"2022-01-10T23:05:20.000Z","updated_at":"2024-07-08T13:57:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe6cd676-085b-4a56-8920-82e5cc91b32f","html_url":"https://github.com/lupyuen/rust-nuttx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Frust-nuttx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Frust-nuttx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Frust-nuttx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lupyuen%2Frust-nuttx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lupyuen","download_url":"https://codeload.github.com/lupyuen/rust-nuttx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451349,"owners_count":21105854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bl602","lora","nuttx","pinecone","pinedio","riscv32","rust","rust-embedded"],"created_at":"2024-11-14T18:24:08.558Z","updated_at":"2025-04-11T17:40:45.433Z","avatar_url":"https://github.com/lupyuen.png","language":"Makefile","funding_links":["https://github.com/sponsors/lupyuen","paypal.me/lupyuen"],"categories":[],"sub_categories":[],"readme":"# Rust Stub Library for Apache NuttX OS\n\nRead the articles...\n\n-   [\"Rust talks I2C on Apache NuttX RTOS\"](https://lupyuen.github.io/articles/rusti2c)\n\n-   [\"Rust on Apache NuttX OS\"](https://lupyuen.github.io/articles/rust2)\n\nThis is a Stub Library, the actual Rust code is at...\n\n-   [lupyuen/rust-i2c-nuttx](https://github.com/lupyuen/rust-i2c-nuttx)\n\n-   [lupyuen/rust_test](https://github.com/lupyuen/rust_test)\n\n# Install Library\n\nTo add this repo to your NuttX project...\n\n```bash\npushd nuttx/nuttx/libs\ngit submodule add https://github.com/lupyuen/rust-nuttx librust\npopd\n```\n\nNext update the Makefiles and Kconfig...\n\n-   [Kconfig](https://github.com/lupyuen/incubator-nuttx/blob/rust/Kconfig#L2014)\n\n-   [tools/Directories.mk](https://github.com/lupyuen/incubator-nuttx/blob/rust/tools/Directories.mk#L170-L174)\n\n-   [tools/FlatLibs.mk](https://github.com/lupyuen/incubator-nuttx/blob/rust/tools/FlatLibs.mk#L159-L163)\n\n-   [tools/KernelLibs.mk](https://github.com/lupyuen/incubator-nuttx/blob/rust/tools/KernelLibs.mk#L145-L149)\n\n-   [tools/LibTargets.mk](https://github.com/lupyuen/incubator-nuttx/blob/rust/tools/LibTargets.mk#L229-L233)\n\n-   [tools/ProtectedLibs.mk](https://github.com/lupyuen/incubator-nuttx/blob/rust/tools/ProtectedLibs.mk#L159-L163)\n\nThen update the NuttX Build Config...\n\n```bash\n## TODO: Change this to the path of our \"incubator-nuttx\" folder\ncd nuttx/nuttx\n\n## Preserve the Build Config\ncp .config ../config\n\n## Erase the Build Config\nmake distclean\n\n## For BL602: Configure the build for BL602\n./tools/configure.sh bl602evb:nsh\n\n## For ESP32: Configure the build for ESP32.\n## TODO: Change \"esp32-devkitc\" to our ESP32 board.\n./tools/configure.sh esp32-devkitc:nsh\n\n## Restore the Build Config\ncp ../config .config\n\n## Edit the Build Config\nmake menuconfig \n```\n\nIn menuconfig, enable the Rust Library under \"Library Routines\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Frust-nuttx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flupyuen%2Frust-nuttx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flupyuen%2Frust-nuttx/lists"}