{"id":19888293,"url":"https://github.com/wasmedge/wasmedge-rust-sdk","last_synced_at":"2025-04-04T18:10:43.724Z","repository":{"id":169872370,"uuid":"644079895","full_name":"WasmEdge/wasmedge-rust-sdk","owner":"WasmEdge","description":"Embed WasmEdge functions in a Rust host app","archived":false,"fork":false,"pushed_at":"2024-12-19T07:42:29.000Z","size":3321,"stargazers_count":32,"open_issues_count":9,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-28T17:11:10.102Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WasmEdge.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-22T19:16:21.000Z","updated_at":"2025-03-18T21:49:03.000Z","dependencies_parsed_at":"2024-06-03T09:59:09.395Z","dependency_job_id":"58d930a3-93b1-43b8-8088-23b1501020da","html_url":"https://github.com/WasmEdge/wasmedge-rust-sdk","commit_stats":null,"previous_names":["wasmedge/wasmedge-rust-sdk"],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasmEdge%2Fwasmedge-rust-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasmEdge%2Fwasmedge-rust-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasmEdge%2Fwasmedge-rust-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WasmEdge%2Fwasmedge-rust-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WasmEdge","download_url":"https://codeload.github.com/WasmEdge/wasmedge-rust-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226215,"owners_count":20904465,"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-11-12T18:06:51.473Z","updated_at":"2025-04-04T18:10:43.706Z","avatar_url":"https://github.com/WasmEdge.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WasmEdge Rust SDK\n\nWasmEdge Rust SDK provides idiomatic [Rust](https://www.rust-lang.org/) language bindings for [WasmEdge](https://wasmedge.org/)\n\n**Notice:** This project is still under active development and not guaranteed to have a stable API.\n\n- [WasmEdge website](https://wasmedge.org/)\n- [WasmEdge Docs](https://wasmedge.org/docs/)\n- [WasmEdge GitHub Page](https://github.com/WasmEdge/WasmEdge)\n- [WasmEdge Rust SDK GitHub Page](https://github.com/WasmEdge/wasmedge-rust-sdk)\n- [WasmEdge Rust SDK Examples](https://github.com/second-state/wasmedge-rustsdk-examples)\n\n## Get Started\n\nThis crate depends on the WasmEdge C API. In linux/macOS the crate can download the API at build time by enabling the `standalone` feature. Otherwise the API needs to be installed in your system first. Please refer to [Install and uninstall WasmEdge](https://wasmedge.org/docs/start/install) to install the WasmEdge library. The versioning table below shows the version of the WasmEdge library required by each version of the `wasmedge-sdk` crate.\n\n  | wasmedge-sdk  | WasmEdge lib  | wasmedge-sys  | wasmedge-types| wasmedge-macro| async-wasi|\n  | :-----------: | :-----------: | :-----------: | :-----------: | :-----------: | :-------: |\n  | 0.14.1        | 0.14.1        | 0.19.4        | 0.6.0         | 0.6.1         | 0.2.1     |\n  | 0.14.0        | 0.14.0        | 0.19.0        | 0.6.0         | 0.6.1         | 0.2.0     |\n  | 0.13.5-newapi | 0.13.5        | 0.18.0        | 0.5.0         | 0.6.1         | 0.2.0     |\n  | 0.13.2        | 0.13.5        | 0.17.5        | 0.4.4         | 0.6.1         | 0.1.0     |\n  | 0.13.1        | 0.13.5        | 0.17.4        | 0.4.4         | 0.6.1         | 0.1.0     |\n  | 0.13.0        | 0.13.5        | 0.17.3        | 0.4.4         | 0.6.1         | 0.1.0     |\n  | 0.12.2        | 0.13.4        | 0.17.2        | 0.4.4         | 0.6.1         | 0.1.0     |\n  | 0.12.1        | 0.13.4        | 0.17.1        | 0.4.4         | 0.6.1         | 0.1.0     |\n  | 0.12.0        | 0.13.4        | 0.17.0        | 0.4.4         | 0.6.1         | 0.1.0     |\n  | 0.11.2        | 0.13.3        | 0.16.2        | 0.4.3         | 0.6.1         | 0.1.0     |\n  | 0.11.0        | 0.13.3        | 0.16.0        | 0.4.3         | 0.6.0         | 0.0.3     |\n  | 0.10.1        | 0.13.3        | 0.15.1        | 0.4.2         | 0.5.0         | 0.0.2     |\n  | 0.10.0        | 0.13.2        | 0.15.0        | 0.4.2         | 0.5.0         | 0.0.2     |\n  | 0.9.0         | 0.13.1        | 0.14.0        | 0.4.2         | 0.4.0         | 0.0.1     |\n  | 0.9.0         | 0.13.0        | 0.14.0        | 0.4.2         | 0.4.0         | 0.0.1     |\n  | 0.8.1         | 0.12.1        | 0.13.1        | 0.4.1         | 0.3.0         | -         |\n  | 0.8.0         | 0.12.0        | 0.13.0        | 0.4.1         | 0.3.0         | -         |\n  | 0.7.1         | 0.11.2        | 0.12.2        | 0.3.1         | 0.3.0         | -         |\n  | 0.7.0         | 0.11.2        | 0.12          | 0.3.1         | 0.3.0         | -         |\n  | 0.6.0         | 0.11.2        | 0.11          | 0.3.0         | 0.2.0         | -         |\n  | 0.5.0         | 0.11.1        | 0.10          | 0.3.0         | 0.1.0         | -         |\n  | 0.4.0         | 0.11.0        | 0.9           | 0.2.1         | -             | -         |\n  | 0.3.0         | 0.10.1        | 0.8           | 0.2           | -             | -         |\n  | 0.1.0         | 0.10.0        | 0.7           | 0.1           | -             | -         |\n\nWasmEdge Rust SDK will automatically search for the WasmEdge library in your system. Alternatively you can set the `WASMEDGE_DIR` environment variable to the path of the WasmEdge library (or the `WASMEDGE_INCLUDE_DIR` and `WASMEDGE_LIB_DIR` variables for more fine-grained control). If you want to use a local `cmake` build of WasmEdge you can set the `WASMEDGE_BUILD_DIR` instead.\n\nWasmEdge Rust SDK will search for the WasmEdge library in the following paths in order:\n\n- `$WASMEDGE_[INCLUDE|LIB]_DIR`\n- `$WASMEDGE_DIR`\n- `$WASMEDGE_BUILD_DIR`\n- `$HOME/.wasmedge`\n- `/usr/local`\n- `$HOME/.local`\n\nWhen the `standalone` feature is enabled the correct library will be downloaded during build time and the previous locations are ignored. You can specify a proxy for the download process using the `WASMEDGE_STANDALONE_PROXY`, `WASMEDGE_STANDALONE_PROXY_USER` and `WASMEDGE_STANDALONE_PROXY_PASS` environment variables. You can set the `WASMEDGE_STANDALONE_ARCHIVE` environment variable to use a local archive instead of downloading one.\n\nThe following architectures are supported for automatic downloads:\n\n  | os    | libc    | architecture        | linking type    |\n  | :---: | :-----: | :-----------------: | :-------------: |\n  | macos | -       | `x86_64`, `aarch64` | dynamic         |\n  | linux | `glibc` | `x86_64`, `aarch64` | static, dynamic |\n  | linux | `musl`  | `x86_64`, `aarch64` | static          |\n\nThis crate uses `rust-bindgen` during the build process. If you would like to use an external `rust-bindgen` you can set the `WASMEDGE_RUST_BINDGEN_PATH` environment variable to the `bindgen` executable path. This is particularly useful in systems like Alpine Linux (see [rust-lang/rust-bindgen#2360](https://github.com/rust-lang/rust-bindgen/issues/2360#issuecomment-1595869379), [rust-lang/rust-bindgen#2333](https://github.com/rust-lang/rust-bindgen/issues/2333)).\n\n**Notice:** The minimum supported Rust version is 1.71.\n\n## Upgrade to 0.14.0\n\nIf you are upgrading from 0.13.2 to 0.14.0, refer to [docs/Upgrade_to_0.14.0.md](docs/Upgrade_to_0.14.0.md).\n\n## API Reference\n\n- [API Reference](https://wasmedge.github.io/wasmedge-rust-sdk/wasmedge_sdk/index.html)\n- [Async API Reference](https://second-state.github.io/wasmedge-async-rust-sdk/wasmedge_sdk/index.html)\n\n## Examples\n\nThe [Examples of WasmEdge RustSDK](https://github.com/second-state/wasmedge-rustsdk-examples) repo contains a number of examples that demonstrate how to use the WasmEdge Rust SDK.\n\n## Contributing\n\nPlease read the [contribution guidelines](https://github.com/WasmEdge/wasmedge-rust-sdk/blob/main/CONTRIBUTING.md) on how to contribute code.\n\n## License\n\nThis project is licensed under the terms of the [Apache 2.0 license](https://github.com/tensorflow/rust/blob/HEAD/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasmedge%2Fwasmedge-rust-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasmedge%2Fwasmedge-rust-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasmedge%2Fwasmedge-rust-sdk/lists"}