{"id":15700876,"url":"https://github.com/xtuc/wasm-custom-section","last_synced_at":"2025-05-12T15:42:34.753Z","repository":{"id":44398224,"uuid":"475605598","full_name":"xtuc/wasm-custom-section","owner":"xtuc","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-22T23:15:05.000Z","size":8,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T00:09:03.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/xtuc.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,"zenodo":null}},"created_at":"2022-03-29T20:15:45.000Z","updated_at":"2025-02-22T23:15:10.000Z","dependencies_parsed_at":"2025-04-20T14:49:01.062Z","dependency_job_id":null,"html_url":"https://github.com/xtuc/wasm-custom-section","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/xtuc%2Fwasm-custom-section","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fwasm-custom-section/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fwasm-custom-section/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtuc%2Fwasm-custom-section/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtuc","download_url":"https://codeload.github.com/xtuc/wasm-custom-section/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767187,"owners_count":21961072,"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-10-03T19:55:32.874Z","updated_at":"2025-05-12T15:42:34.705Z","avatar_url":"https://github.com/xtuc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wasm-custom-section\n\n\u003e Write a custom section in a Wasm module\n\n## Install\n\n```\n$ cargo install wasm-custom-section\n```\n\n## Usage\n\n### Add a new custom section\n\n```\n$ wasm-custom-section ./input.wasm add SECTION_NAME \u003c FILE\n```\n\nOutput file will be written at `FILE.out`.\n\n### List custom sections\n\n```\n$ wasm-custom-section ./input.wasm list\n\nSection `name` (9 bytes)\nSection `test` (3232 bytes)\n```\n\n### Show a specific custom sections\n\n```\n$ wasm-custom-section ./input.wasm show SECTION_NAME\n\nSection `test` (3232 bytes):\nLength: 3232 (0xca0) bytes\n0000:   75 73 65 20  63 6c 61 70  3a 3a 7b 41  72 67 2c 20   use clap::{Arg,\n0010:   43 6f 6d 6d  61 6e 64 7d  3b 0a 75 73  65 20 70 72   Command};.use pr\n0020:   65 74 74 79  5f 68 65 78  3a 3a 73 69  6d 70 6c 65   etty_hex::simple\n0030:   5f 68 65 78  3b 0a 75 73  65 20 73 74  64 3a 3a 66   _hex;.use std::f\n0040:   73 3b 0a 75  73 65 20 73  74 64 3a 3a  69 6f 3b 0a   s;.use std::io;.\n0050:   75 73 65 20  73 74 64 3a  3a 69 6f 3a  3a 52 65 61   use std::io::Rea\n0060:   64 3b 0a 75  73 65 20 73  74 64 3a 3a  73 74 72 3b   d;.use std::str;\n0070:   0a 0a 74 79  70 65 20 42  6f 78 45 72  72 20 3d 20   ..type BoxErr =\n0080:   42 6f 78 3c  64 79 6e 20  73 74 64 3a  3a 65 72 72   Box\u003cdyn std::err\n0090:   6f 72 3a 3a  45 72 72 6f  72 3e 3b 0a  0a 66 6e 20   or::Error\u003e;..fn\n00a0:   6d 61 69 6e  28 29 20 2d  3e 20 52 65  73 75 6c 74   main() -\u003e Result\n\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fwasm-custom-section","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtuc%2Fwasm-custom-section","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtuc%2Fwasm-custom-section/lists"}