{"id":13626654,"url":"https://github.com/zigwasm/wasmtime-zig","last_synced_at":"2025-04-16T14:34:12.390Z","repository":{"id":37808408,"uuid":"263984697","full_name":"zigwasm/wasmtime-zig","owner":"zigwasm","description":"Zig embedding of Wasmtime","archived":false,"fork":false,"pushed_at":"2022-08-19T07:10:44.000Z","size":65,"stargazers_count":82,"open_issues_count":4,"forks_count":8,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-08T16:44:55.669Z","etag":null,"topics":["wasi","wasm","wasmtime","zig","zig-library"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zigwasm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-14T17:44:48.000Z","updated_at":"2024-09-08T15:54:35.000Z","dependencies_parsed_at":"2022-08-19T02:12:40.656Z","dependency_job_id":null,"html_url":"https://github.com/zigwasm/wasmtime-zig","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/zigwasm%2Fwasmtime-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigwasm%2Fwasmtime-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigwasm%2Fwasmtime-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigwasm%2Fwasmtime-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zigwasm","download_url":"https://codeload.github.com/zigwasm/wasmtime-zig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249250843,"owners_count":21237961,"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":["wasi","wasm","wasmtime","zig","zig-library"],"created_at":"2024-08-01T21:02:25.672Z","updated_at":"2025-04-16T14:34:12.127Z","avatar_url":"https://github.com/zigwasm.png","language":"Zig","readme":"# wasmtime-zig\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-kubkon/wasmtime--zig-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/kubkon/wasmtime-zig)\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/workflow/status/kubkon/wasmtime-zig/CI/master?style=for-the-badge\" height=\"20\"\u003e](https://github.com/kubkon/wasmtime-zig/actions?query=branch%3Amaster)\n\nZig embedding of [Wasmtime]\n\n[Wasmtime]: https://github.com/bytecodealliance/wasmtime\n\n## Disclaimer\n\nThis is a very much work-in-progress library so drastic changes to the API are anything\nbut expected, and things might just not work as expected yet.\n\n## Building\n\nTo build this library, you will need Zig nightly 0.8.0, as well as [`gyro`] package manager.\n\n[`gyro`]: https://github.com/mattnite/gyro\n\nThis library consumes the C API of the Wasmtime project which you can download with every release of\nWasmtime. It relies on version `v0.24.0` of Wasmtime and you need it to build tests and examples.\nYou can download the library from [here].\n\nAfter you unpack it, if you installed the lib in path that is not your system search path for lld,\nyou can add the installed path to the build command using the following flag\n\n```\ngyro build --search-prefix=\u003cpath-to-libwasmtime\u003e\n```\n\n[here]: https://github.com/bytecodealliance/wasmtime/releases/tag/v0.24.0\n\n## Running examples\n\n### `simple.zig`\n\nThe `simple.zig` example is equivalent to [`hello.c`] example in Wasmtime. You can run it with\n\n```\ngyro build run -Dexample=simple\n```\n\nOptionally, if you installed `libwasmtime` into some custom path, you can tell zig where to find it\nwith\n\n```\ngyro build run -Dexample=simple --search-prefix=\u003cpath-to-libwasmtime\u003e\n```\n\n[`hello.c`]: https://github.com/bytecodealliance/wasmtime/blob/master/examples/hello.c\n\n","funding_links":[],"categories":["Zig","Libraries","Network \u0026 Web"],"sub_categories":["WebAssembly"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigwasm%2Fwasmtime-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzigwasm%2Fwasmtime-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigwasm%2Fwasmtime-zig/lists"}