Skip to content

Commit

Permalink
Remove message-provider crate feature as it doesn't have dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Sliman4 committed Sep 4, 2024
1 parent 34a60e3 commit 33f3dd4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ temp-file = "0.1.8"

[features]
default = []
message-provider = []
neardata = [ "message-provider", "reqwest" ]
lake = [ "message-provider", "near-lake-framework" ]
neardata = [ "reqwest" ]
lake = [ "near-lake-framework" ]

[[example]]
name = "watch-the-slime"
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ InIndexer is a NEAR indexer framework.
- Some helper functions and types for working with logs, balances, and other commonly used functionality in
`near_utils`.

## Feature flags

- `neardata`: Neardata data source
- `lake`: NEAR Lake data source

This crate only works with tokio runtime.

If you want to see some examples, check minimal examples in [examples/](examples/) or real indexers used in Intear infrastructure ([nft-indexer](https://github.com/INTEARnear/nft-indexer), [potlock-indexer](https://github.com/INTEARnear/potlock-indexer), [trade-indexer](https://github.com/INTEARnear/trade-indexer), [new-token-indexer](https://github.com/INTEARnear/new-token-indexer), [intear-oracle indexer](https://github.com/INTEARnear/oracle/tree/main/crates/indexer)). By the way, some of these repositories are libraries, so if you want the same functionality but with a different event handler, you can use them in your code by specifying them as git dependencies.
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@
//! - Some helper functions and types for working with logs, balances, and other commonly used functionality in
//! [`near_utils`].
//!
//! ## Feature flags
//!
//! - `neardata`: Neardata data source
//! - `lake`: NEAR Lake data source
//!
//! This crate only works with tokio runtime.

mod indexer_state;
#[cfg(test)]
mod indexer_tests;
#[cfg(feature = "lake")]
pub mod lake;
#[cfg(feature = "message-provider")]
pub mod message_provider;
pub mod multiindexer;
pub mod near_utils;
Expand Down

0 comments on commit 33f3dd4

Please sign in to comment.