{"id":23419282,"url":"https://github.com/dasimmet/wabt","last_synced_at":"2025-09-09T12:46:48.207Z","repository":{"id":269333004,"uuid":"907066546","full_name":"dasimmet/wabt","owner":"dasimmet","description":"WebAssembly Binary Toolkit (wabt) and Binaryen on the zig build system","archived":false,"fork":false,"pushed_at":"2025-02-02T21:37:15.000Z","size":37,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T22:26:35.536Z","etag":null,"topics":["wabt","wasm","wasm2wat","zig","zig-package"],"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/dasimmet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T18:03:06.000Z","updated_at":"2025-02-02T21:37:19.000Z","dependencies_parsed_at":"2024-12-22T20:23:10.859Z","dependency_job_id":"679940c7-6eec-4a2f-8ed1-ae8f9803e897","html_url":"https://github.com/dasimmet/wabt","commit_stats":null,"previous_names":["dasimmet/wabt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fwabt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fwabt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fwabt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dasimmet%2Fwabt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dasimmet","download_url":"https://codeload.github.com/dasimmet/wabt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238937842,"owners_count":19555380,"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":["wabt","wasm","wasm2wat","zig","zig-package"],"created_at":"2024-12-23T01:17:31.885Z","updated_at":"2025-02-15T03:16:29.640Z","avatar_url":"https://github.com/dasimmet.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebAssembly Tools on the zig build system\n\nuses the [Zig](https://ziglang.org/) build system to build WebAssembly's binary\nC tools.\n\n## building\n\n```zig build\nzig build\n```\n\n## add to your zig project\n\n```bash\nzig fetch --save git+https://github.com/dasimmet/wabt.git\n```\n\n## [WebAssembly Binary Toolkit](https://github.com/WebAssembly/wabt.git)\n\n```\n\u003e ./zig-out/bin/wasm2c --help\nusage: wasm2c [options] filename\n\n  Read a file in the WebAssembly binary format, and convert it to\n  a C source file and header.\n```\n\n## [Binaryen](https://github.com/WebAssembly/binaryen.git)\n\n```\n\u003e ./zig-out/bin/wasm-merge --help\n================================================================================\nwasm-merge INFILE1 NAME1 INFILE2 NAME2 [..]\n\nMerge wasm files into one.\n```\n\n## build.zig usage\n\n```zig\nconst wabt = @import(\"wabt\");\n\n// wasm-opt\n\nconst optimized_wasm: LazyPath = wabt.wasm_opt(\n    b.path(\"my.wasm\"),                // source path\n    \"optimized.wasm\",                 // out_basename\n    .{\"--mvp-features\", \"-Oz\", \"-c\"}, // extra args\n);\n\n// wasm2wat\n\nconst my_wat: LazyPath = wabt.wasm2wat(\n    optimized_wasm, // source path\n    \"my.wat\",       // out_basename\n    .{},            // extra args\n);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasimmet%2Fwabt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdasimmet%2Fwabt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdasimmet%2Fwabt/lists"}