Cargo Features

near-chain has no features set by default.

[dependencies]
near-chain = { version = "0.1.0", features = ["byzantine_asserts", "adversarial", "delay_detector", "no_cache", "protocol_feature_block_header_v3", "protocol_feature_chunk_only_producers", "protocol_feature_routing_exchange_algorithm", "nightly_protocol_features", "nightly_protocol", "sandbox"] }
byzantine_asserts

if enabled, we assert in most situations that are impossible unless some byzantine behavior is observed.

expensive_tests adversarial
delay_detector = near-delay-detector
no_cache

Enables no_cache of near-store-v01

protocol_feature_block_header_v3 nightly_protocol_features? protocol_feature…only_producers?

Affects types::RuntimeAdapter.verify_approvals_and_threshold_orphan

protocol_feature_chunk_only_producers nightly_protocol_features? = protocol_feature_block_header_v3

Enables protocol_feature…only_producers of near-primitives-v01

protocol_feature_routing_exchange_algorithm nightly_protocol_features?
nightly_protocol_features = nightly_protocol, protocol_feature_block_header_v3, protocol_feature…only_producers, protocol_feature…algorithm
nightly_protocol nightly_protocol_features?
sandbox

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.

near-delay-detector delay_detector?