# 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"
rust-version = "1.69"
name = "avalanche-types"
version = "0.0.380"
publish = true
description = "Avalanche primitive types in Rust"
homepage = "https://avax.network"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/ava-labs/avalanche-types-rs"
resolver = "1"

[package.metadata.cargo-udeps.ignore]
build = [
    "protoc-gen-prost",
    "protoc-gen-tonic",
]
development = [
    "id-manager",
    "tokio",
    "tokio-test",
    "tonic-reflection",
    "random-manager",
    "tempfile",
]
normal = []

[package.metadata.docs.rs]
features = [
    "subnet",
    "subnet_metrics",
]

[lib]
doctest = false

[[example]]
name = "evm_eip712_gsn_domain_separator"
required-features = ["evm"]

[[example]]
name = "evm_eip712_gsn_request_type_hash"
required-features = ["evm"]

[[example]]
name = "evm_contract_abi_calldata"
required-features = ["evm"]

[[example]]
name = "evm_contract_forwarder_get_nonce"
required-features = [
    "jsonrpc_client",
    "evm",
]

[[example]]
name = "evm_contract_counter_increment"
required-features = [
    "jsonrpc_client",
    "evm",
]

[[example]]
name = "evm_contract_counter_get_last"
required-features = [
    "jsonrpc_client",
    "evm",
]

[[example]]
name = "evm_contract_counter_increment_append_calldata"
required-features = [
    "jsonrpc_client",
    "evm",
]

[[example]]
name = "evm_contract_counter_increment_forwarder_proxy_call"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_counter_increment_forwarder_execute"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_counter_increment_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_voter_vote_a_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_simple_registry_register"
required-features = [
    "jsonrpc_client",
    "evm",
]

[[example]]
name = "evm_contract_simple_registry_register_forwarder_execute"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_simple_registry_register_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_erc20_simple_token_increase_allowance_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_erc20_simple_token_transfer_from_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_erc721_my_token_mint_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_erc721_my_token_approve_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_contract_erc721_my_token_transfer_from_forwarder_relay_eip712"
required-features = [
    "jsonrpc_client",
    "evm",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "evm_send_raw_transaction_eip1559_hot_key"
required-features = [
    "jsonrpc_client",
    "evm",
]

[[example]]
name = "evm_send_raw_transaction_eip1559_kms_aws"
required-features = [
    "jsonrpc_client",
    "evm",
    "kms_aws",
]

[[example]]
name = "wallet_evm_send_transaction_hot_key"
required-features = [
    "jsonrpc_client",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "jsonrpc_client_evm"
required-features = [
    "jsonrpc_client",
    "wallet",
    "wallet_evm",
]

[[example]]
name = "jsonrpc_client_info"
required-features = ["jsonrpc_client"]

[[example]]
name = "jsonrpc_client_p"
required-features = ["jsonrpc_client"]

[[example]]
name = "jsonrpc_client_x"
required-features = ["jsonrpc_client"]

[[example]]
name = "key_cert"

[[example]]
name = "key_secp256k1_kms_aws"
required-features = ["kms_aws"]

[[example]]
name = "key_secp256k1_mnemonic_derive_load"
required-features = ["mnemonic"]

[[example]]
name = "proto_client"
required-features = [
    "proto",
    "subnet",
]

[[example]]
name = "proto_server"
required-features = [
    "proto",
    "subnet",
]

[[test]]
name = "integration"
path = "tests/integration_tests.rs"
required-features = ["subnet"]

[dependencies.async-trait]
version = "0.1.68"

[dependencies.aws-manager]
version = "0.27.3"
features = ["kms"]
optional = true

[dependencies.aws-sdk-kms]
version = "0.27.0"
optional = true

[dependencies.base64]
version = "0.21.0"
optional = true

[dependencies.bech32]
version = "0.9.1"

[dependencies.bip32]
version = "0.5.0"
optional = true

[dependencies.blst]
version = "0.3.10"

[dependencies.bs58]
version = "0.4.0"

[dependencies.bytes]
version = "1.4.0"

[dependencies.cert-manager]
version = "0.0.10"

[dependencies.chrono]
version = "0.4.24"

[dependencies.cmp-manager]
version = "0.0.1"

[dependencies.ecdsa]
version = "0.16.6"
features = [
    "rfc6979",
    "verifying",
]

[dependencies.ethers]
version = "=2.0.4"
features = ["eip712"]
optional = true

[dependencies.ethers-core]
version = "=2.0.4"
features = ["eip712"]

[dependencies.ethers-providers]
version = "=2.0.4"
optional = true

[dependencies.ethers-signers]
version = "=2.0.4"
optional = true

[dependencies.flate2]
version = "1.0.26"
optional = true

[dependencies.futures]
version = "0.3.28"
optional = true

[dependencies.hex]
version = "0.4.3"

[dependencies.hmac]
version = "0.12.1"

[dependencies.http]
version = "0.2.9"
optional = true

[dependencies.hyper]
version = "0.14.26"
optional = true

[dependencies.jsonrpc-core]
version = "18.0.0"
optional = true

[dependencies.jsonrpc-http-server]
version = "18.0.0"
optional = true

[dependencies.k256]
version = "0.13.1"
features = ["ecdsa"]

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.log]
version = "0.4.17"

[dependencies.num-bigint]
version = "0.4.3"
optional = true

[dependencies.num-derive]
version = "0.3.3"
optional = true

[dependencies.num-traits]
version = "0.2.15"
optional = true

[dependencies.prefix-manager]
version = "0.0.2"

[dependencies.primitive-types]
version = "0.12.1"
features = ["impl-serde"]

[dependencies.prometheus]
version = "0.13.3"
features = ["process"]
optional = true
default-features = false

[dependencies.prost]
version = "0.11.9"
optional = true

[dependencies.rand]
version = "0.8.5"

[dependencies.rand_core]
version = "0.6.4"
features = ["std"]
optional = true

[dependencies.reqwest]
version = "0.11.17"
optional = true

[dependencies.ring]
version = "0.16.20"

[dependencies.ripemd]
version = "0.1.3"

[dependencies.rlp]
version = "0.5.2"
features = ["std"]
optional = true
default-features = false

[dependencies.rust-embed]
version = "6.6.1"

[dependencies.secp256k1]
version = "0.27.0"
features = [
    "global-context",
    "rand-std",
    "recovery",
]
optional = true

[dependencies.semver]
version = "1.0.17"
optional = true

[dependencies.serde]
version = "1.0.162"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.96"

[dependencies.serde_with]
version = "3.0.0"
features = ["hex"]

[dependencies.serde_yaml]
version = "0.9.21"

[dependencies.sha2]
version = "0.10.6"

[dependencies.sha3]
version = "0.10.8"

[dependencies.spki]
version = "0.7.2"

[dependencies.thiserror]
version = "1.0.40"

[dependencies.tokio]
version = "1.28.1"
features = ["full"]
optional = true

[dependencies.tokio-stream]
version = "0.1.14"
features = ["net"]
optional = true

[dependencies.tonic]
version = "0.9.2"
features = ["gzip"]
optional = true

[dependencies.tonic-health]
version = "0.9.2"
optional = true

[dependencies.tonic-reflection]
version = "0.9.2"
optional = true

[dependencies.tower-service]
version = "0.3.2"
optional = true

[dependencies.url]
version = "2.3.1"

[dependencies.zerocopy]
version = "0.6.1"

[dependencies.zeroize]
version = "1.6.0"

[dev-dependencies.env_logger]
version = "0.10.0"

[dev-dependencies.id-manager]
version = "0.0.3"

[dev-dependencies.random-manager]
version = "0.0.5"

[dev-dependencies.tempfile]
version = "3.5.0"

[dev-dependencies.tokio-stream]
version = "0.1.14"
features = ["net"]

[dev-dependencies.tokio-test]
version = "0.4.2"

[build-dependencies.protoc-gen-prost]
version = "0.2.2"

[build-dependencies.protoc-gen-tonic]
version = "0.2.2"

[features]
avalanchego = []
codec_base64 = ["base64"]
codec_big_int = ["num-bigint"]
default = []
evm = [
    "ethers",
    "ethers-providers",
    "ethers-signers",
    "rlp",
    "tokio",
]
jsonrpc_client = [
    "ethers-providers",
    "reqwest",
    "tokio",
]
kms_aws = [
    "aws-manager",
    "aws-sdk-kms",
    "ethers-signers",
    "tokio",
]
libsecp256k1 = ["secp256k1"]
message = [
    "flate2",
    "proto",
]
mnemonic = [
    "bip32",
    "rand_core",
]
proto = [
    "prost",
    "tonic",
]
subnet = [
    "futures",
    "http",
    "hyper",
    "jsonrpc-core",
    "num-derive",
    "num-traits",
    "prost",
    "semver",
    "tokio",
    "tokio-stream",
    "tonic",
    "tonic-health",
    "tonic-reflection",
    "tower-service",
    "proto",
]
subnet_evm = []
subnet_metrics = [
    "prometheus",
    "subnet",
]
wallet = [
    "reqwest",
    "tokio",
]
wallet_evm = [
    "ethers",
    "ethers-providers",
    "ethers-signers",
    "tokio",
    "jsonrpc_client",
    "reqwest",
]
xsvm = []
