{"id":17543532,"url":"https://github.com/alixinne/cross-images","last_synced_at":"2026-02-17T10:38:06.955Z","repository":{"id":95937407,"uuid":"420185715","full_name":"alixinne/cross-images","owner":"alixinne","description":"Docker images for cross-compiling Rust projects with dependencies","archived":false,"fork":false,"pushed_at":"2024-07-18T16:19:50.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T19:31:50.846Z","etag":null,"topics":["cross","docker","rust"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/alixinne.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":"2021-10-22T17:24:41.000Z","updated_at":"2024-07-18T16:19:53.000Z","dependencies_parsed_at":"2024-01-17T21:52:31.132Z","dependency_job_id":"57fe751c-d18a-41c1-bc56-229ad82a3bdf","html_url":"https://github.com/alixinne/cross-images","commit_stats":null,"previous_names":["alixinne/cross-images"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alixinne/cross-images","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alixinne%2Fcross-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alixinne%2Fcross-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alixinne%2Fcross-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alixinne%2Fcross-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alixinne","download_url":"https://codeload.github.com/alixinne/cross-images/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alixinne%2Fcross-images/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29540223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["cross","docker","rust"],"created_at":"2024-10-21T00:24:35.723Z","updated_at":"2026-02-17T10:38:06.932Z","avatar_url":"https://github.com/alixinne.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [cross-images](https://github.com/alixinne/cross-images)\n\n**Archived:** Balena does not provide the images the Raspberry Pi images rely\non for fetching dependencies, so this setup does not work anymore for recent\nversions of Debian (Trixie and above).\n\nDocker images for cross-compiling Rust with native dependencies. This\nrepository builds [rust](https://hub.docker.com/_/rust/)-based images with the\nextra support needed for cross-compiling on unusual targets.\n\n## Targets\n\nTargets are defined in the [`targets`](targets/) folder. The currently defined targets are:\n\n* [`raspberrypi-bookworm`](targets/raspberrypi-bookworm): Raspberry Pi Zero/1 on Raspbian Bookworm\n\n  *Rationale: arm-linux-gnueabihf toolchains are now configured by default to\n  use ARMv7, which is only supported by Raspberry Pi 2 and later. This builds a\n  arm-linux-gnueabihf toolchain for ARMv6 so we can cross-compile Rust programs\n  for those targets.*\n\n* [`raspberrypi-bullseye`](targets/raspberrypi-bullseye): Raspberry Pi Zero/1 on Raspbian Bullseye\n\n  *Rationale: same as above.*\n\n* [`x86_64-bullseye`](targets/x86_64-bullseye): x86_64 native compiler on Debian Bullseye\n\n  *Rationale: for compatibility with other cross compiling images in this\n  repository, even if you are targeting your host.*\n\n## Usage\n\nThe images built by this repository are compatible with\n[cross](https://github.com/rust-embedded/cross). In order to use them, add a\n`Cross.toml` file referencing the image for your target as described below.\nThen, use `cross` as usual: `cross build --target \u003cTARGET\u003e ...`.\n\n### `raspberrypi-bookworm`\n\n```toml\n[target.arm-unknown-linux-gnueabihf]\nimage = \"ghcr.io/alixinne/cross:raspberrypi-bookworm\"\n```\n\n### `raspberrypi-bullseye`\n\n```toml\n[target.arm-unknown-linux-gnueabihf]\nimage = \"ghcr.io/alixinne/cross:raspberrypi-bullseye\"\n```\n\n### `x86_64-bullseye`\n\n```toml\n[target.x86_64-unknown-linux-gnu]\nimage = \"ghcr.io/alixinne/cross:x86_64-bullseye\"\n```\n\n## Dependencies\n\nAll the targets in this repository include the following *common* dependencies:\n\n* sqlite3: available as-is\n* python3: feature-gated behind `ENABLE_PYO3=1`\n\nTo enable extra features, you need to:\n\n1. Add the `passthrough` setting to `Cross.toml`:\n\n```toml\n[build.env]\npassthrough = [\n    \"ENABLE_PYO3\"\n]\n```\n\n2. Set the variable in your environment:\n\n```bash\nexport ENABLE_PYO3=1\n```\n\n3. Build as usual\n\n```bash\ncross build\n```\n\n## Building the images\n\nA [Makefile](Makefile) is provided to build all images.\n\n```\nmake\n```\n\n## Testing the images\n\n```\nmake test\n```\n\n## Author\n\nAlixinne \u003calixinne@pm.me\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falixinne%2Fcross-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falixinne%2Fcross-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falixinne%2Fcross-images/lists"}