From 33f3dd460a70bf7a1e0a5420df561b67f0417076 Mon Sep 17 00:00:00 2001 From: sliman4 <4sliman4@gmail.com> Date: Wed, 4 Sep 2024 20:59:26 +0300 Subject: [PATCH] Remove message-provider crate feature as it doesn't have dependencies --- Cargo.toml | 5 ++--- README.md | 5 +++++ src/lib.rs | 6 +++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6819184..eda090b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/README.md b/README.md index d0a40ff..a920e09 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/lib.rs b/src/lib.rs index b9e703f..7b7d56b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,6 +18,11 @@ //! - 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; @@ -25,7 +30,6 @@ mod indexer_state; mod indexer_tests; #[cfg(feature = "lake")] pub mod lake; -#[cfg(feature = "message-provider")] pub mod message_provider; pub mod multiindexer; pub mod near_utils;