Cargo Features

near-network has no features set by default.

[dependencies]
near-network = { version = "0.1.0", features = ["adversarial", "delay_detector", "performance_stats", "sandbox", "protocol_feature_routing_exchange_algorithm"] }
adversarial = serde

Enables adversarial of near-network-primitives ^0.1.0

Affects types::StartRoutingTableSync, types::SetAdvOptions, types::EdgeList.adv_disable_edge_signature_verification

delay_detector = near-delay-detector
performance_stats

Enables performance_stats of near-performance-metrics ^0.1.0

sandbox

Enables sandbox of near-network-primitives ^0.1.0

Affects types::SandboxResponse

protocol_feature_routing_exchange_algorithm

Enables protocol_feature…algorithm of near-primitives-v01

Affects peer_manager::IbfRoutingTableExchangeMessages, peer_manager::IbfRoutingTableExchangeMessagesResponse

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde adversarial?
near-delay-detector delay_detector?