Skip to content

Commit c2ee721

Browse files
authored
Merge pull request astarte-platform#416 from joshuachp/push-mnmuvxlmynxk
chore(docs): add message hub client example
2 parents 641399f + 9334554 commit c2ee721

File tree

14 files changed

+926
-189
lines changed

14 files changed

+926
-189
lines changed

Cargo.lock

Lines changed: 1 addition & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ astarte-message-hub-proto = { workspace = true }
103103
astarte-message-hub-proto-mock = { workspace = true }
104104
async-trait = { workspace = true }
105105
color-eyre = { workspace = true }
106-
env_logger = { workspace = true }
106+
eyre = { workspace = true }
107107
mockall = { workspace = true }
108108
mockito = { workspace = true }
109109
pretty_assertions = { workspace = true }
@@ -143,7 +143,6 @@ bytes = "1.5.0"
143143
cfg-if = "1.0.0"
144144
chrono = "0.4.20"
145145
color-eyre = "0.6.3"
146-
env_logger = "0.11.0"
147146
eyre = "0.6.12"
148147
flate2 = "1.0.0"
149148
flume = "0.11.0"
@@ -182,3 +181,13 @@ webpki-roots = "0.26.0"
182181
# Transitive dependencies
183182
litemap = "=0.7.4"
184183
zerofrom = "=0.1.5"
184+
185+
[[example]]
186+
name = "msghub_client"
187+
path = "examples/message_hub_client/main.rs"
188+
required-features = ["message-hub", "derive"]
189+
190+
[[example]]
191+
name = "object_datastream"
192+
path = "examples/object_datastream/main.rs"
193+
required-features = ["derive"]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ Quick links:
2525
- [API documentation](https://docs.rs/astarte-device-sdk/latest/astarte_device_sdk/).
2626
- [Astarte documentation](https://docs.astarte-platform.org/latest/001-intro_user.html) for more information regarding Astarte.
2727
- [Get started](https://docs.rs/astarte-device-sdk/latest/astarte_device_sdk/_docs/_get_started/index.html) for a guide on how to use the SDK functionalities.
28+
- [Connect to the Astarte MessageHub](https://docs.rs/astarte-device-sdk/latest/astarte_device_sdk/_docs/_connect_to_the_astarte_msghub/index.html) tutorial.
2829
- [OS requirements](https://github.com/astarte-platform/astarte-device-sdk-rust/tree/master/docs/os-requirements.md) for system libraries.
2930

3031
## Use the library
3132

32-
You can add the library tro your project with:
33+
You can add the library to your project with:
3334

3435
```sh
3536
cargo new astarte-project && cd astarte-project

0 commit comments

Comments
 (0)