# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "unc-primitives" version = "0.12.2" authors = ["Hello Inc "] publish = true description = "This crate provides the base set of primitives used by other unc-infra.crates" license = "GPL-2.0-or-later" repository = "https://github.com/utnet-org/utility" [[bench]] name = "serialization" harness = false [dependencies.arbitrary] version = "1.2.3" features = ["derive"] [dependencies.base64] version = "0.21" [dependencies.borsh] version = "1.0.0" features = [ "derive", "rc", ] [dependencies.bytesize] version = "1.1" features = ["serde"] [dependencies.cfg-if] version = "1.0" [dependencies.chrono] version = "0.4.37" features = ["serde"] [dependencies.derive_more] version = "0.99.9" [dependencies.easy-ext] version = "0.2" [dependencies.enum-map] version = "2.1.0" [dependencies.hex] version = "0.4.2" features = ["serde"] [dependencies.num-rational] version = "0.3.1" features = ["serde"] [dependencies.once_cell] version = "1.13.1" [dependencies.primitive-types] version = "0.10" default-features = false [dependencies.rand] version = "0.8.5" [dependencies.rand_chacha] version = "0.3.1" [dependencies.reed-solomon-erasure] version = "4" [dependencies.serde] version = "1.0.136" features = [ "alloc", "derive", "rc", ] [dependencies.serde_json] version = "1.0.68" [dependencies.serde_with] version = "3.0" features = ["base64"] [dependencies.serde_yaml] version = "0.9" [dependencies.sha3] version = "0.10" [dependencies.smart-default] version = "0.6" [dependencies.stdx] version = "0.12.2" package = "unc-stdx" [dependencies.strum] version = "0.24" features = ["derive"] [dependencies.thiserror] version = "1.0.30" [dependencies.time] version = "0.3.9" features = [ "parsing", "serde", ] [dependencies.tracing] version = "0.1.36" features = ["std"] [dependencies.unc-crypto] version = "0.12.2" [dependencies.unc-fmt] version = "0.12.2" [dependencies.unc-o11y] version = "0.12.2" [dependencies.unc-parameters] version = "0.12.2" [dependencies.unc-primitives-core] version = "0.12.2" [dependencies.unc-rpc-error-macro] version = "0.12.2" [dependencies.unc-vm-runner] version = "0.12.2" [dev-dependencies.assert_matches] version = "1.5.0" [dev-dependencies.bencher] version = "0.1.5" [dev-dependencies.insta] version = "1.34.0" features = [ "json", "yaml", "redactions", ] [features] calimero_zero_storage = [] dump_errors_schema = ["unc-rpc-error-macro/dump_errors_schema"] new_epoch_sync = [] nightly = [ "nightly_protocol", "protocol_feature_fix_contract_loading_cost", "protocol_feature_fix_staking_threshold", "protocol_feature_reject_blocks_with_outdated_protocol_version", "unc-fmt/nightly", "unc-o11y/nightly", "unc-parameters/nightly", "unc-primitives-core/nightly", "unc-vm-runner/nightly", ] nightly_protocol = [ "unc-fmt/nightly_protocol", "unc-o11y/nightly_protocol", "unc-parameters/nightly_protocol", "unc-primitives-core/nightly_protocol", "unc-vm-runner/nightly_protocol", ] protocol_feature_fix_contract_loading_cost = ["unc-primitives-core/protocol_feature_fix_contract_loading_cost"] protocol_feature_fix_staking_threshold = ["unc-primitives-core/protocol_feature_fix_staking_threshold"] protocol_feature_reject_blocks_with_outdated_protocol_version = ["unc-primitives-core/protocol_feature_reject_blocks_with_outdated_protocol_version"] sandbox = [] [lints.clippy] clone_on_copy = "deny" derivable_impls = "deny" len_zero = "deny" redundant_clone = "deny" single_char_pattern = "allow" [lints.clippy.all] level = "allow" priority = -100 [lints.clippy.correctness] level = "deny" priority = -50 [lints.clippy.perf] level = "deny" priority = -50 [lints.clippy.suspicious] level = "deny" priority = -50 [lints.rust] warnings = "deny"