{"id":25695252,"url":"https://github.com/aceba1/rust-pi-template","last_synced_at":"2026-04-22T09:07:23.852Z","repository":{"id":82999988,"uuid":"453846454","full_name":"Aceba1/rust-pi-template","owner":"Aceba1","description":"Rust template for cross-compiling and remotely executing on the Raspberry Pi","archived":false,"fork":false,"pushed_at":"2022-01-31T01:22:02.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T00:42:32.307Z","etag":null,"topics":["raspberry-pi","rust","template"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aceba1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-01-31T01:18:53.000Z","updated_at":"2022-01-31T01:25:37.000Z","dependencies_parsed_at":"2023-03-02T21:15:49.680Z","dependency_job_id":null,"html_url":"https://github.com/Aceba1/rust-pi-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Aceba1/rust-pi-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aceba1%2Frust-pi-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aceba1%2Frust-pi-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aceba1%2Frust-pi-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aceba1%2Frust-pi-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aceba1","download_url":"https://codeload.github.com/Aceba1/rust-pi-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aceba1%2Frust-pi-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32128741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["raspberry-pi","rust","template"],"created_at":"2025-02-25T00:42:30.844Z","updated_at":"2026-04-22T09:07:23.839Z","avatar_url":"https://github.com/Aceba1.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust-Pi Template\r\n\r\nA rust template for cross-compiling and remotely executing code for the Raspberry Pi.\r\n\r\n(Instructions based off of this [blog post](https://chacin.dev/blog/cross-compiling-rust-for-the-raspberry-pi/))\r\n\r\n# Workspace Setup\r\n### Install rustup for Workspace\r\n- https://rustup.rs/\r\n\r\n### Add the Standard Library\r\n- `rustup target add armv7-unknown-linux-gnueabihf`\r\n\r\n### Install Raspberry Pi Toolchain\r\n- Windows: https://gnutoolchains.com/raspberry/\r\n\r\n# New Project Setup\r\n\r\n### Initialize Rust project\r\n- `cargo new \"project-name\"`\r\n\r\n### Create config file\r\n- Create a file in (project root)`/.cargo/config.toml`\r\n- Add contents:\r\n```\r\n[build]\r\ntarget = \"armv7-unknown-linux-gnueabihf\"\r\n\r\n[target.armv7-unknown-linux-gnueabihf]\r\nlinker = \"arm-linux-gnueabihf-gcc\"\r\n```\r\n\r\n# Run on Remote SSH\r\n\r\nIt is recommended to generate `id_rsa.pub` (with `ssh-keygen`) for the workspace, and append it to the Pi host's keys (located in `~/.ssh/authorized_keys`)\r\n\r\nInstructions here serve as reference, a local script may be of more use.\r\n\r\n## Commands:\r\n\r\n- Build: `cargo build`\r\n\r\n- Copy: `scp .\\target\\armv7-unknown-linux-gnueabihf\\debug\\rust-pi-template pi@raspberrypi.local:/tmp/vscode-rust-exec`\r\n\r\n- Run: `ssh pi@raspberrypi.local 'chmod +x /tmp/vscode-rust-exec \u0026\u0026 /tmp/vscode-rust-exec'`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faceba1%2Frust-pi-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faceba1%2Frust-pi-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faceba1%2Frust-pi-template/lists"}