|
1 | 1 | # Dapr Rust SDK - Examples |
2 | 2 |
|
3 | | -These examples demonstrates how to use Dapr rust sdk. |
| 3 | +These examples demonstrate how to use the Dapr Rust SDK. |
4 | 4 |
|
| 5 | +* [actors](src/actors) |
| 6 | + * Demonstrates Dapr actor hosting and actor client calls |
| 7 | +* [app-api-token](src/app-api-token) |
| 8 | + * Demonstrates inbound auth on an app-callback server with `AppApiTokenLayer` |
| 9 | +* [bindings](src/bindings) |
| 10 | + * Demonstrates Dapr input and output bindings |
5 | 11 | * [client](src/client) |
6 | | - * Simple dapr client example that saves, gets, and deletes state from the state stores |
| 12 | + * Saves, gets, and deletes state with a Dapr client |
| 13 | +* [client-config](src/client-config) |
| 14 | + * Demonstrates client construction from environment variables, options, and explicit addresses |
| 15 | +* [configuration](src/configuration) |
| 16 | + * Reads and subscribes to Dapr configuration values |
| 17 | +* [conversation-alpha1](src/conversation-alpha1) |
| 18 | + * Sends a request to the Dapr conversation alpha1 echo component |
| 19 | +* [conversation-alpha2](src/conversation-alpha2) |
| 20 | + * Sends a request to the Dapr conversation alpha2 echo component |
| 21 | +* [crypto](src/crypto) |
| 22 | + * Demonstrates Dapr cryptography operations |
| 23 | +* [invoke/grpc](src/invoke/grpc) |
| 24 | + * Demonstrates service invocation over gRPC |
| 25 | +* [invoke/grpc-proxying](src/invoke/grpc-proxying) |
| 26 | + * Demonstrates service invocation through Dapr gRPC proxying |
| 27 | +* [jobs](src/jobs) |
| 28 | + * Demonstrates Dapr job scheduling |
| 29 | +* [jobs-failurepolicy](src/jobs-failurepolicy) |
| 30 | + * Demonstrates Dapr job scheduling with a failure policy |
7 | 31 | * [pubsub](src/pubsub) |
8 | 32 | * Publishes and subscribes to events |
| 33 | +* [query_state](src/query_state) |
| 34 | + * Demonstrates state queries against a query-capable state store |
| 35 | +* [secrets-bulk](src/secrets-bulk) |
| 36 | + * Retrieves secrets in bulk from a local secret store |
9 | 37 | * [workflow](src/workflow) |
10 | 38 | * Demonstrates registering, running, waiting for, and purging a workflow |
| 39 | +* [workflow-history-propagation](src/workflow-history-propagation) |
| 40 | + * Demonstrates propagating workflow history to child workflows and activities |
11 | 41 | * [workflow-parallel](src/workflow-parallel) |
12 | 42 | * Demonstrates parallel workflow activity execution |
13 | | -* [workflow-taskexecutionid](src/workflow-taskexecutionid) |
14 | | - * Demonstrates activity retry task execution IDs |
15 | 43 | * [workflow-sustained](src/workflow-sustained) |
16 | 44 | * Demonstrates sustained concurrent workflow scheduling |
17 | | -* [workflow-history-propagation](src/workflow-history-propagation) |
18 | | - * Demonstrates propagating workflow history to child workflows and activities |
| 45 | +* [workflow-taskexecutionid](src/workflow-taskexecutionid) |
| 46 | + * Demonstrates activity retry task execution IDs |
19 | 47 |
|
20 | 48 | ## Adding new examples |
21 | 49 |
|
22 | | -To add new examples, `Cargo.toml` would have to be updated as follows: |
| 50 | +To add new examples, update `examples/Cargo.toml` with an entry like: |
23 | 51 |
|
24 | | -```rust |
| 52 | +```toml |
25 | 53 | [[example]] |
26 | 54 | name = "example-name" |
27 | | -path = "examples/example-name/example.rs" |
28 | | -``` |
| 55 | +path = "src/example-name/main.rs" |
| 56 | +``` |
0 commit comments