{"id":20364274,"url":"https://github.com/rvanasa/motoko-rust-starter","last_synced_at":"2026-05-26T23:31:23.986Z","repository":{"id":247454684,"uuid":"825861101","full_name":"rvanasa/motoko-rust-starter","owner":"rvanasa","description":"Motoko + Rust starter project (Wasm component model)","archived":false,"fork":false,"pushed_at":"2025-08-05T17:22:26.000Z","size":1061,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-05T19:15:37.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/rvanasa.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":"2024-07-08T16:36:36.000Z","updated_at":"2024-07-30T00:35:26.000Z","dependencies_parsed_at":"2024-11-15T01:15:05.394Z","dependency_job_id":null,"html_url":"https://github.com/rvanasa/motoko-rust-starter","commit_stats":null,"previous_names":["rvanasa/motoko-rust-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rvanasa/motoko-rust-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanasa%2Fmotoko-rust-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanasa%2Fmotoko-rust-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanasa%2Fmotoko-rust-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanasa%2Fmotoko-rust-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvanasa","download_url":"https://codeload.github.com/rvanasa/motoko-rust-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvanasa%2Fmotoko-rust-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33543973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-15T00:10:50.301Z","updated_at":"2026-05-26T23:31:23.973Z","avatar_url":"https://github.com/rvanasa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Motoko + Rust Starter\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/rvanasa/motoko-rust-starter)\n\n\u003e Note: running in-browser currently takes a while due to building the Motoko compiler from source.\n\n## 📦 Overview\n\nThis repository is a minimal starter project for calling Rust functions from a Motoko program using the [WebAssembly Component Model](https://component-model.bytecodealliance.org/). While this is currently intended to be used with [Wasmtime](https://github.com/bytecodealliance/wasmtime#readme), it's possible to run the generated Motoko + Rust component in any environment with component model support. \n\nIt's currently possible to call a function with a `Blob` input and return value, which can be used to pass arbitrary Candid-encoded values. \n\n## ⚙️ Getting Started\n\n### System Requirements\n\n* Unix operating system (tested on Ubuntu and macOS)\n* [Rust](https://www.rust-lang.org/)\n* [Wasmtime](https://github.com/bytecodealliance/wasmtime#readme)\n* [`wasm-tools`](https://github.com/bytecodealliance/wasm-tools#readme)\n* [`wac`](https://github.com/bytecodealliance/wac#readme)\n* [`dfx`](https://support.dfinity.org/hc/en-us/articles/10552713577364-How-do-I-install-dfx)\n\n### Motoko Compiler\n\nSince cross-language support relies on [this unmerged PR](https://github.com/dfinity/motoko/pull/4580), it's currently necessary to use a custom version of the Motoko compiler. You can set this up with the following steps:\n\n```sh\n# Open a terminal in the root of this repository\ncd ..\ngit clone https://github.com/dfinity/motoko.git\ncd motoko\ngit checkout ryan/component-call\n```\n\nWe can remove this step after merging the corresponding PR.\n\n### 📜 Scripts\n\nThe starter project includes Bash files in the `/scripts` directory to create and run a Motoko + Rust component.\n\n**Build the component:**\n\n```sh\nscripts/build.sh\n```\n\n**Build and run in Wasmtime:**\n\n```sh\nscripts/run.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvanasa%2Fmotoko-rust-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvanasa%2Fmotoko-rust-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvanasa%2Fmotoko-rust-starter/lists"}