{"id":13599908,"url":"https://github.com/rust-mobile/xbuild","last_synced_at":"2025-04-10T17:32:57.938Z","repository":{"id":37789169,"uuid":"441207909","full_name":"rust-mobile/xbuild","owner":"rust-mobile","description":"Cross compile rust to any platform","archived":false,"fork":false,"pushed_at":"2024-03-08T16:37:55.000Z","size":2720,"stargazers_count":390,"open_issues_count":47,"forks_count":24,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-04-23T10:44:55.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/rust-mobile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["dvc94ch"]}},"created_at":"2021-12-23T14:38:10.000Z","updated_at":"2024-05-01T23:06:21.965Z","dependencies_parsed_at":"2024-05-01T23:06:09.004Z","dependency_job_id":"dd85c603-aceb-4950-9a30-0f15b37e0df1","html_url":"https://github.com/rust-mobile/xbuild","commit_stats":{"total_commits":309,"total_committers":4,"mean_commits":77.25,"dds":0.0744336569579288,"last_synced_commit":"f308f20be976c7615d9859787546e011479d99c5"},"previous_names":["cloudpeers/x","cloudpeers/xbuild"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fxbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fxbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fxbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-mobile%2Fxbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-mobile","download_url":"https://codeload.github.com/rust-mobile/xbuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223320308,"owners_count":17126084,"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":[],"created_at":"2024-08-01T17:01:17.317Z","updated_at":"2024-11-07T01:31:26.481Z","avatar_url":"https://github.com/rust-mobile.png","language":"Rust","funding_links":["https://github.com/sponsors/dvc94ch"],"categories":["Rust"],"sub_categories":[],"readme":"# xbuild\nxbuild is a build tool for rust projects with support for cross compiling and publishing to all\nmajor stores. The goal of xbuild is making native app development as easy as web development.\n\n## Getting started\nInstall `xbuild`:\n```sh\ncargo install xbuild\n```\n\nList connected devices:\n```sh\nx devices\nhost                                              Linux               linux x64           Arch Linux 5.16.10-arch1-1\nadb:16ee50bc                                      FP4                 android arm64       Android 11 (API 30)\nimd:55abbd4b70af4353bdea2595bbddcac4a2b7891a      David’s iPhone      ios arm64           iPhone OS 15.3.1\n```\n\nBuild or run on a device:\n```sh\nx build --device adb:16ee50bc\n[1/3] Fetch precompiled artifacts\ninfo: component 'rust-std' for target 'aarch64-linux-android' is up to date\n[1/3] Fetch precompiled artifacts [72ms]\n[2/3] Build rust\n    Finished dev [unoptimized + debuginfo] target(s) in 0.11s\n[2/3] Build rust [143ms]\n[3/3] Create apk [958ms]\n```\n\n![x](https://user-images.githubusercontent.com/741807/162616805-30b48faa-84f0-4fec-851a-4c94fd35c6bd.png)\n\n## Troubleshooting\n\n### Command not found\n`x doctor` should let you know if there are any external tools missing.\n\n```sh\n x doctor\n--------------------clang/llvm toolchain--------------------\nclang                14.0.6              /usr/bin/clang\nclang++              14.0.6              /usr/bin/clang++\nllvm-ar              unknown             /usr/bin/llvm-ar\nllvm-lib             unknown             /usr/bin/llvm-lib\nlld                  14.0.6              /usr/bin/lld\nlld-link             14.0.6              /usr/bin/lld-link\nlldb                 14.0.6              /usr/bin/lldb\nlldb-server          unknown             /usr/bin/lldb-server\n\n----------------------------rust----------------------------\nrustup               1.25.1              /usr/bin/rustup\ncargo                1.64.0              /usr/bin/cargo\n\n--------------------------android---------------------------\nadb                  1.0.41              /usr/bin/adb\njavac                11.0.17             /usr/bin/javac\njava                 11.0.17             /usr/bin/java\nkotlin               1.7.20-release-201  /usr/bin/kotlin\ngradle               7.5.1               /usr/bin/gradle\n\n----------------------------ios-----------------------------\nidevice_id           1.3.0-167-gb314f04  /usr/bin/idevice_id\nideviceinfo          1.3.0-167-gb314f04  /usr/bin/ideviceinfo\nideviceinstaller     1.1.1               /usr/bin/ideviceinstaller\nideviceimagemounter  1.3.0-167-gb314f04  /usr/bin/ideviceimagemounter\nidevicedebug         1.3.0-167-gb314f04  /usr/bin/idevicedebug\n\n---------------------------linux----------------------------\nmksquashfs           4.5.1               /usr/bin/mksquashfs\n```\n\n### error: failed to run custom build command for glib-sys v0.14.0\nThis means that `gtk3-dev` is not installed. Install `gtk3-dev` package to fix the problem.\n\n### Generating apple signing key/certificate\nSee [apple_codesign_certificate_management](https://github.com/indygreg/apple-platform-rs/blob/main/apple-codesign/docs/apple_codesign_certificate_management.rst) for further information.\n\n### Generating mobile provisioning profiles\nWithout an apple developer account there is no cross platform way of generating mobile provisioning\nprofiles. You can either figure out how to generate it using xcode or [cook](https://github.com/n3d1117/cook).\n\n## License\nApache-2.0 OR MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-mobile%2Fxbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-mobile%2Fxbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-mobile%2Fxbuild/lists"}