Skip to main content

solana_tpu_client_next/
lib.rs

1#![cfg_attr(
2    not(feature = "agave-unstable-api"),
3    deprecated(
4        since = "3.1.0",
5        note = "This crate has been marked for formal inclusion in the Agave Unstable API. From \
6                v4.0.0 onward, the `agave-unstable-api` crate feature must be specified to \
7                acknowledge use of an interface that may break without warning."
8    )
9)]
10//! # Feature flags
11//!
12//! Tpu-client-next supports three features:
13//!
14//! - **`metrics`**: Enables implementation of the method `report_to_influxdb` for
15//!   [`SendTransactionStats`] structure.
16//! - **`log`**: Enables logging using `log` crate. It is enabled by default.
17//! - **`tracing`**: Enables logging using `tracing` crate instead of `log`. This feature is
18//!   mutually exclusive with `log`.
19
20pub(crate) mod connection_worker;
21pub mod connection_workers_scheduler;
22pub mod send_transaction_stats;
23pub mod workers_cache;
24pub use crate::{
25    connection_workers_scheduler::{ConnectionWorkersScheduler, ConnectionWorkersSchedulerError},
26    send_transaction_stats::SendTransactionStats,
27};
28pub(crate) mod quic_networking;
29pub(crate) use crate::quic_networking::QuicError;
30pub mod leader_updater;
31pub mod transaction_batch;
32
33#[cfg(feature = "metrics")]
34pub mod metrics;
35
36// Logging abstraction module
37pub(crate) mod logging;