{"id":13672408,"url":"https://github.com/ewasm/ewasm-rust-api","last_synced_at":"2025-04-09T21:17:40.138Z","repository":{"id":51202779,"uuid":"138661307","full_name":"ewasm/ewasm-rust-api","owner":"ewasm","description":"Ewasm API for Rust","archived":false,"fork":false,"pushed_at":"2021-06-17T05:33:06.000Z","size":106,"stargazers_count":104,"open_issues_count":13,"forks_count":13,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-09T21:17:36.927Z","etag":null,"topics":["ethereum","ewasm","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ewasm.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":"2018-06-25T23:44:00.000Z","updated_at":"2025-03-11T09:34:38.000Z","dependencies_parsed_at":"2022-09-19T05:31:34.643Z","dependency_job_id":null,"html_url":"https://github.com/ewasm/ewasm-rust-api","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewasm%2Fewasm-rust-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewasm%2Fewasm-rust-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewasm%2Fewasm-rust-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewasm%2Fewasm-rust-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewasm","download_url":"https://codeload.github.com/ewasm/ewasm-rust-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248111973,"owners_count":21049578,"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":["ethereum","ewasm","rust"],"created_at":"2024-08-02T09:01:34.662Z","updated_at":"2025-04-09T21:17:40.107Z","avatar_url":"https://github.com/ewasm.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# ewasm-rust-api\n\n![Build](https://circleci.com/gh/ewasm/ewasm-rust-api.svg?style=shield\u0026circle-token=:circle-token)\n![Version](https://img.shields.io/crates/v/ewasm-api.svg)\n\nThis project aims to give a low-level and a high-level binding to ewasm from Rust.\n\n# Usage\n\nAdd the dependency, as usual:\n```toml\n[dependencies]\newasm-api = \"0.11\"\n```\n\nMake sure the project is a library of `cdylib` type:\n```toml\n[lib]\ncrate-type = [\"cdylib\"]\n```\n\nIn your project, include the prelude:\n```rust\nuse ewasm_api::prelude::*;\n```\n\nAdditionally there is support for some macros to make creating contracts easier:\n```rust\n#[macro_use]\nextern crate ewasm_api;\n\nuse ewasm_api::prelude::*;\n\nfn entry() {\n    // The actual contract code goes here.\n}\n\newasm_entry_point!(entry);\n```\n\nOther modules are available as well, outside of the prelude. Refer to the documentation for more info.\n\n`ewasm-rust-api` builds with various feature sets:\n- `default`: Builds with `wee_alloc` as the global allocator and with the Rust standard library.\n- `qimalloc`: Builds with [qimalloc](https://github.com/wasmx/qimalloc) as the global allocator.\n- `debug`: Exposes the debugging interface.\n- `experimental`: Exposes the experimental bignum system library API.\n\nTo enable specific features include the dependency as follows:\n```toml\n[dependencies.ewasm_api]\nversion = \"0.11\"\ndefault-features = false\nfeatures = [\"std\", \"qimalloc\"]\n```\nFurther documentation is available [here](https://docs.rs/ewasm_api/).\n\n## Author(s)\n\nAlex Beregszaszi, Jake Lang\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewasm%2Fewasm-rust-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewasm%2Fewasm-rust-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewasm%2Fewasm-rust-api/lists"}