{"id":13638363,"url":"https://github.com/fitzgen/wasm-nm","last_synced_at":"2025-12-30T05:52:54.556Z","repository":{"id":50354564,"uuid":"114167127","full_name":"fitzgen/wasm-nm","owner":"fitzgen","description":"List the symbols within a wasm file","archived":true,"fork":false,"pushed_at":"2018-01-11T00:16:11.000Z","size":69,"stargazers_count":43,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-31T12:13:48.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/fitzgen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-13T20:45:50.000Z","updated_at":"2024-09-03T09:58:35.000Z","dependencies_parsed_at":"2022-08-04T14:30:27.162Z","dependency_job_id":null,"html_url":"https://github.com/fitzgen/wasm-nm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwasm-nm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwasm-nm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwasm-nm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitzgen%2Fwasm-nm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitzgen","download_url":"https://codeload.github.com/fitzgen/wasm-nm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223805200,"owners_count":17205870,"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-08-02T01:00:44.716Z","updated_at":"2025-12-12T13:02:44.889Z","avatar_url":"https://github.com/fitzgen.png","language":"Rust","funding_links":[],"categories":["Inspecting","Development Tools"],"sub_categories":["Inspecting `.wasm` Binaries"],"readme":"# wasm-nm\n\n[![](https://docs.rs/wasm-nm/badge.svg)](https://docs.rs/wasm-nm/) [![](https://img.shields.io/crates/v/wasm-nm.svg)](https://crates.io/crates/wasm-nm) [![](https://img.shields.io/crates/d/wasm-nm.png)](https://crates.io/crates/wasm-nm) [![Build Status](https://travis-ci.org/fitzgen/wasm-nm.png?branch=master)](https://travis-ci.org/fitzgen/wasm-nm)\n\nList the symbols within a wasm file.\n\n* [Library](#library)\n* [Executable](#executable)\n* [License](#license)\n* [Contributing](#contributing)\n\n### Executable\n\nTo install the `wasm-nm` executable, run\n\n```\n$ cargo install wasm-nm\n```\n\nFor information on using the `wasm-nm` executable, run\n\n```\n$ wasm-nm --help\n```\n\n#### Using `wasm-nm` as a Size Profiler\n\n`wasm-nm` can function as a rudimentary size profiler for `.wasm` files.\n\nThe `-z` option enables printing a function's code size. The unix `sort` utility\ncan be used to sort the symbols by size. The `rustfilt` utility can be used to\ndemangle Rust symbols (`cargo install rustfilt`).\n\n```\n$ wasm-nm -z path/to/something.wasm | sort -n -u -r | rustfilt | head\n3578 p dlmalloc::dlmalloc::Dlmalloc::malloc::hb37c2fafc9847520\n3307 e quicksilver\n1427 p \u003cstr as core::fmt::Debug\u003e::fmt::h0cf4ea19d7121472\n1287 p std::panicking::rust_panic_with_hook::h52b2005910c55f47\n1268 p core::fmt::Formatter::pad::hdb2be9f507201bd1\n1248 p core::str::slice_error_fail::h09ffe3974e261c49\n1064 p core::fmt::write::h914fcaafc6fb200a\n987 p core::fmt::Formatter::pad_integral::h2f2f83d99c318b28\n945 p \u003c\u0026'a T as core::fmt::Debug\u003e::fmt::h4a5a01d440d30f67\n918 p dlmalloc::dlmalloc::Dlmalloc::free::h8185738df2a87b48\n```\n\n### Library\n\nTo use `wasm-nm` as a library, add this to your `Cargo.toml`:\n\n```toml\n[dependencies.wasm-nm]\n# Do not build the executable.\ndefault-features = false\n```\n\nSee [docs.rs/wasm-nm][docs] for API documentation.\n\n[docs]: https://docs.rs/wasm-nm\n\n### License\n\nLicensed under either of\n\n * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\n * [MIT license](http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contributing\n\nSee\n[CONTRIBUTING.md](https://github.com/fitzgen/wasm-nm/blob/master/CONTRIBUTING.md)\nfor hacking.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n\nLicense: Apache-2.0/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzgen%2Fwasm-nm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitzgen%2Fwasm-nm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzgen%2Fwasm-nm/lists"}