-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(protos-examples): clean up rust doc landing page
- Loading branch information
1 parent
cc03250
commit 8bcf621
Showing
3 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//! # Firehose Protos Examples | ||
//! | ||
//! Examples that use methods implemented on the Rust-compiled Firehose | ||
//! protobuffer types from [Firehose Protos](../firehose_protos/index.html). | ||
//! | ||
//! ## Running Examples | ||
//! | ||
//! To run the examples, you need access to a Firehose provider for each chain from which you want | ||
//! to extract data - an endpoint and an API key (if the latter is required). | ||
//! | ||
//! If you need access to a Firehose provider, we suggest using [Pinax](https://app.pinax.network/). | ||
//! | ||
//! Add your endpoint and API key to a `.env` file in the root of the repository. See `.env.examples` for | ||
//! a configuration template. | ||
//! | ||
//! To run individual examples, use the following command: | ||
//! | ||
//! ```terminal | ||
//! cargo run -p firehose-protos-examples --example <example_name> | ||
//! ``` | ||
//! | ||
//! So, for example, to run the `receipt_root` example: | ||
//! | ||
//! ```terminal | ||
//! cargo run -p firehose-protos-examples --example receipt_root | ||
//! ``` | ||
//! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters