{"id":13822083,"url":"https://github.com/meta-rust/meta-rust","last_synced_at":"2025-05-16T15:32:38.139Z","repository":{"id":22156196,"uuid":"25487588","full_name":"meta-rust/meta-rust","owner":"meta-rust","description":"OpenEmbedded/Yocto layer for Rust and Cargo","archived":false,"fork":false,"pushed_at":"2024-06-29T01:10:13.000Z","size":1210,"stargazers_count":199,"open_issues_count":63,"forks_count":121,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-06-29T03:40:12.195Z","etag":null,"topics":["bitbake","cargo","rust","yocto","yocto-layer"],"latest_commit_sha":null,"homepage":"","language":"BitBake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meta-rust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.MIT","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":"2014-10-20T21:31:22.000Z","updated_at":"2024-06-29T01:10:17.000Z","dependencies_parsed_at":"2023-11-10T18:28:48.541Z","dependency_job_id":"26ec55a5-a220-45a2-9268-61e2628138dd","html_url":"https://github.com/meta-rust/meta-rust","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/meta-rust%2Fmeta-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-rust%2Fmeta-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-rust%2Fmeta-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-rust%2Fmeta-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meta-rust","download_url":"https://codeload.github.com/meta-rust/meta-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213893315,"owners_count":15653524,"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":["bitbake","cargo","rust","yocto","yocto-layer"],"created_at":"2024-08-04T08:01:41.786Z","updated_at":"2024-08-04T08:07:38.647Z","avatar_url":"https://github.com/meta-rust.png","language":"BitBake","funding_links":[],"categories":["NASL"],"sub_categories":[],"readme":"## Introduction\n\nThis OpenEmbedded layer provides the rust compiler, tools for building packages\n(cargo), and a few example projects.\n\n## What works:\n\n - Building `rust-native` and `cargo-native`\n - Building Rust based projects with Cargo for the TARGET\n   - e.g. `rustfmt` which is used by the CI system\n - `-buildsdk` and `-crosssdk` packages\n\n## What doesn't:\n\n - Using anything but x86_64 as the build environment\n - rust (built for target) [issue #81](https://github.com/meta-rust/meta-rust/issues/81)\n\n## What's untested:\n\n - cargo (built for target)\n\n## Building a rust package\n\nWhen building a rust package in bitbake, it's usually easiest to build with\ncargo using cargo.bbclass.  If the package already has a Cargo.toml file (most\nrust packages do), then it's especially easy.  Otherwise you should probably\nget the code building in cargo first.\n\nOnce your package builds in cargo, you can use\n[cargo-bitbake](https://github.com/meta-rust/cargo-bitbake) to generate a bitbake\nrecipe for it.  This allows bitbake to fetch all the necessary dependent\ncrates, as well as a pegged version of the crates.io index, to ensure maximum\nreproducibility.\n\nNOTE: You will have to edit the generated recipe based on the comments\ncontained within it\n\n## TODO\n\n## Pitfalls\n\n - TARGET_SYS _must_ be different from BUILD_SYS. This is due to the way Rust configuration options are tracked for different targets. This is the reason we use the Yocto triples instead of the native Rust triples. See [rust-lang/cargo#3349](https://github.com/rust-lang/cargo/issues/3349).\n\n## Dependencies\n\nOn the host:\n - Any `-sys` packages your project might need must have RDEPENDs for\n the native library.\n\nOn the target:\n - Any `-sys` packages your project might need must have RDEPENDs for\n the native library.\n\n## Maintainer(s) \u0026 Patch policy\n\nOpen a Pull Request.\n\nThe master branch supports the latest master of poky. When poky creates releases, we will create a branch with the same name as the poky release. This release branch should always work with that poky release. Note that these release branches will typically be less tested than the master branch.\n\nAll new patches against rust, rust-llvm, and cargo must have referenced\nupstream issues or PRs opened or an explanation why the patch cannot be\nupstreamed. This corresponds to the OpenEmbedded policy for other meta layers.\n\nMore info can be seen on the wiki.\n\n## Copyright\n\nMIT OR Apache-2.0 - Same as rust\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-rust%2Fmeta-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeta-rust%2Fmeta-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-rust%2Fmeta-rust/lists"}