{"id":13670488,"url":"https://github.com/dapr/rust-sdk","last_synced_at":"2025-05-15T00:09:08.805Z","repository":{"id":40211807,"uuid":"217582366","full_name":"dapr/rust-sdk","owner":"dapr","description":"Dapr SDK for Rust - Alpha","archived":false,"fork":false,"pushed_at":"2025-03-10T15:53:53.000Z","size":583,"stargazers_count":220,"open_issues_count":44,"forks_count":66,"subscribers_count":20,"default_branch":"main","last_synced_at":"2025-03-13T16:44:33.416Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dapr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-25T17:21:45.000Z","updated_at":"2025-03-10T15:53:57.000Z","dependencies_parsed_at":"2024-02-23T03:27:17.105Z","dependency_job_id":"3673919b-15d7-4c4f-b010-500ce2757087","html_url":"https://github.com/dapr/rust-sdk","commit_stats":{"total_commits":53,"total_committers":23,"mean_commits":"2.3043478260869565","dds":0.8490566037735849,"last_synced_commit":"b69e1f84b04858f72de4c70793cc353fcbf08529"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapr%2Frust-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapr%2Frust-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapr%2Frust-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapr%2Frust-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapr","download_url":"https://codeload.github.com/dapr/rust-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878014,"owners_count":21011158,"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-02T09:00:43.182Z","updated_at":"2025-04-08T16:00:16.371Z","avatar_url":"https://github.com/dapr.png","language":"Rust","readme":"# Dapr SDK for Rust (Alpha)\n\n[![Crates.io][crates-badge]][crates-url]\n[![Build Status][actions-badge]][actions-url]\n[![discord][discord-badge]][discord-url]\n[![License: Apache 2.0][apache-badge]][apache-url]\n[![FOSSA Status][fossa-badge]][fossa-url]\n\n[crates-badge]: https://img.shields.io/crates/v/dapr.svg\n[crates-url]: https://crates.io/crates/dapr\n[apache-badge]: https://img.shields.io/badge/License-Apache_2.0-blue.svg\n[apache-url]: https://github.com/dapr/rust-sdk/blob/master/LICENSE\n[actions-badge]: https://github.com/dapr/rust-sdk/workflows/dapr-rust-sdk/badge.svg\n[actions-url]: https://github.com/dapr/rust-sdk/actions?query=workflow%3Adapr-rust-sdk+branch%3Amain\n[fossa-badge]: https://app.fossa.com/api/projects/custom%2B162%2Fgithub.com%2Fdapr%2Frust-sdk.svg?type=shield\n[fossa-url]: https://app.fossa.com/projects/custom%2B162%2Fgithub.com%2Fdapr%2Frust-sdk?ref=badge_shield\n[discord-badge]: https://img.shields.io/discord/778680217417809931\n[discord-url]: https://discord.com/channels/778680217417809931/778680217417809934\n\nDapr is a portable, event-driven, serverless runtime for building distributed applications across cloud and edge.\n\n- [dapr.io](https://dapr.io)\n- [@DaprDev](https://twitter.com/DaprDev)\n\n## Alpha\n\nThis SDK is currently in Alpha. Work is underway to bring forward a stable\nrelease and will likely involve breaking changes.\n- Documentation is incomplete.\n- Not all building blocks are currently implemented.\n- There may be bugs.\n- The SDK does not have complete test coverage.\n\nThe maintainers commit to resolving any issues that arise and bringing this SDK\nto a stable release. With this in mind, the SDK will follow the norms and\nconventions of a stable SDK so far as is possible.\n\nThis SDK will be accounted for as a part of the release process. Support for \nthe latest runtime release is targeted but not guaranteed.\n\nThe main tenet of development will be stability and functionality that improves\nresiliency.\n\n## Prerequisites\n\nEnsure you have Rust version 1.78 or higher installed. If not, install Rust [here](https://www.rust-lang.org/tools/install).\n\nThese crates no longer require protoc unless to recompile the protobuf files.\n\n## How to use\n\nAdd the following to your `Cargo.toml` file:\n\n```toml\n[dependencies]\ndapr = \"0.16.0\"\n```\n\nHere's a basic example to create a client:\n\n```Rust\nuse dapr;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    // Get the Dapr port and create a connection\n    let port: u16 = std::env::var(\"DAPR_GRPC_PORT\")?.parse()?;\n    let addr = format!(\"https://127.0.0.1:{}\", port);\n\n    // Create the client\n    let mut client = dapr::Client::\u003cdapr::client::TonicClient\u003e::connect(addr).await?;\n}\n```\n\n## Explore more examples\n\nBrowse through more examples to understand the SDK better: [View examples](https://github.com/dapr/rust-sdk/tree/main/examples)\n\n## Building\n\nTo build the SDK run:\n\n```bash\ncargo build\n```\n\n## Developing (Updating .proto files from upstream Dapr)\n\nTo fetch the latest .proto files from Dapr execute the script `update-protos.sh`:\n\n```bash\n./update-protos.sh\n```\n\nBy default, the script fetches the latest proto updates from the master branch of the Dapr repository. If you need to choose a specific release or version, use the -v flag:\n\n```bash\n./update-protos.sh -v v1.14.0\n```\n\nYou will also need to install [protoc](https://github.com/protocolbuffers/protobuf#protobuf-compiler-installation).\n\nProtos can then be compiled using:\n\n```bash\ncargo run proto-gen\n```\n\n### Contact Us\nReach out with any questions you may have and we'll be sure to answer them as\nsoon as possible!\n\n[![Discord Banner](https://discord.com/api/guilds/778680217417809931/widget.png?style=banner2)](https://aka.ms/dapr-discord)\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapr%2Frust-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapr%2Frust-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapr%2Frust-sdk/lists"}