Add note pointing to more complete example.

This commit is contained in:
D. Scott Boggs 2023-01-21 05:33:41 -05:00
parent 2301fda307
commit ef28d8367f
1 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,10 @@ async fn register() -> Result<Mastodon> {
It also supports the [Streaming API](https://docs.joinmastodon.org/api/streaming): It also supports the [Streaming API](https://docs.joinmastodon.org/api/streaming):
> **Note**: this example compiles, but will not run. See the
> [log_events](https://github.com/dscottboggs/mastodon-async/blob/main/examples/log_events.rs)
> example for a more thorough example which does compile and run.
```rust,no_run ```rust,no_run
use mastodon_async::{prelude::*, Result, entities::event::Event}; use mastodon_async::{prelude::*, Result, entities::event::Event};
use futures_util::TryStreamExt; use futures_util::TryStreamExt;
@ -113,3 +117,4 @@ async fn main() -> Result<()> {
Ok(()) Ok(())
} }
``` ```