near-primitives 0.12.0

This crate provides the base set of primitives used by other nearcore crates
Documentation
[package]
name = "near-primitives"
version = "0.12.0"
authors = ["Near Inc <hello@nearprotocol.com>"]
publish = true
# Please update rust-toolchain.toml as well when changing version here:
rust-version = "1.56.0"
edition = "2021"
license = "MIT OR Apache-2.0"
repository = "https://github.com/near/nearcore"
description = """
This crate provides the base set of primitives used by other nearcore crates
"""

[dependencies]
byteorder = "1.3"
bytesize = "1.1"
chrono = { version = "0.4.4", features = ["serde"] }
derive_more = "0.99.3"
easy-ext = "0.2"
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
smart-default = "0.6"
rand = "0.7"
reed-solomon-erasure = "4"
hex = "0.4"
num-rational = { version = "0.3", features = ["serde"] }
primitive-types = "0.10"
deepsize = { version = "0.2.0", features = ["chrono"], optional=true }

borsh = { version = "0.9", features = ["rc"] }

near-primitives-core = { path = "../primitives-core", version = "0.12.0"}
near-crypto = { path = "../crypto", version = "0.12.0" }
near-vm-errors = { path = "../../runtime/near-vm-errors", version = "0.12.0" }
near-rpc-error-macro = { path = "../../tools/rpctypegen/macro", version = "0.12.0" }

[features]
dump_errors_schema = ["near-rpc-error-macro/dump_errors_schema"]
protocol_feature_alt_bn128 = ["near-primitives-core/protocol_feature_alt_bn128", "near-vm-errors/protocol_feature_alt_bn128"]
protocol_feature_chunk_only_producers = []
protocol_feature_routing_exchange_algorithm = ["near-primitives-core/protocol_feature_routing_exchange_algorithm"]
protocol_feature_access_key_nonce_for_implicit_accounts = []
protocol_feature_fix_staking_threshold = []
nightly_protocol_features = ["nightly_protocol", "protocol_feature_alt_bn128", "protocol_feature_chunk_only_producers", "protocol_feature_routing_exchange_algorithm", "protocol_feature_access_key_nonce_for_implicit_accounts", "protocol_feature_fix_staking_threshold"]
nightly_protocol = []
deepsize_feature = ["deepsize", "near-vm-errors/deepsize_feature", "near-primitives-core/deepsize_feature", "near-crypto/deepsize_feature"]

[dev-dependencies]
bencher = "0.1.5"

[[bench]]
name = "serialization"
harness = false