Cargo Features

[dependencies]
near-primitives-v01 = { version = "0.1.0", default-features = false, features = ["dump_errors_schema", "protocol_feature_block_header_v3", "protocol_feature_alt_bn128", "protocol_feature_simple_nightshade", "protocol_feature_chunk_only_producers", "protocol_feature_lower_data_receipt_cost", "protocol_feature_lower_ecrecover_base_cost", "protocol_feature_routing_exchange_algorithm", "protocol_feature_wasmer2", "nightly_protocol_features", "nightly_protocol", "jemallocator"] }
default = jemallocator

The jemallocator feature is set by default whenever near-primitives-v01 is added without default-features = false somewhere in the dependency tree.

dump_errors_schema

Enables dump_errors_schema of near-rpc-error-macro ^0.1.0

protocol_feature_block_header_v3 nightly_protocol_features? protocol_feature…only_producers?

Affects block_header::BlockHeaderInnerRestV3, block_header::BlockHeaderV3, epoch_manager::block_info, epoch_manager::epoch_info, sharding::shard_chunk_header_inner, sharding::ShardChunkHeaderV3, types::validator_stake, types::chunk_extra, views::BlockHeaderView.prev_height, views::BlockHeaderView.block_ordinal, views::BlockHeaderView.epoch_sync_data_hash, views::validator_stake_view

protocol_feature_alt_bn128 nightly_protocol_features?

Enables protocol_feature_alt_bn128 of near-primitives-core-v01 and near-vm-errors-v3

protocol_feature_simple_nightshade nightly_protocol_features?
protocol_feature_chunk_only_producers nightly_protocol_features? = protocol_feature_block_header_v3

Affects epoch_manager::EpochConfig.validator_selection_config, epoch_manager::epoch_info.EpochInfoV3, near-primitives-v01::rand, types::validator_stake.ValidatorStakeV2, views::validator_stake_view.ValidatorStakeViewV2

protocol_feature_lower_data_receipt_cost nightly_protocol_features?
protocol_feature_lower_ecrecover_base_cost nightly_protocol_features?
protocol_feature_routing_exchange_algorithm nightly_protocol_features?

Enables protocol_feature…algorithm of near-primitives-core-v01

protocol_feature_wasmer2 nightly_protocol_features?
nightly_protocol_features = nightly_protocol, protocol_feature_alt_bn128, protocol_feature_block_header_v3, protocol_feature…only_producers, protocol_feature…data_receipt_cost, protocol_feature…base_cost, protocol_feature…algorithm, protocol_feature_simple_nightshade, protocol_feature_wasmer2
nightly_protocol nightly_protocol_features?

Affects version::PROTOCOL_VERSION

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.

jemallocator default

Enables jemallocator ^0.3