# 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.65"
name = "avalanche-types"
version = "0.0.131"
publish = true
description = "Avalanche types"
homepage = "https://avax.network"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/ava-labs/avalanche-rust/tree/main/crates/avalanche-types"
resolver = "1"

[package.metadata.cargo-udeps.ignore]
normal = ["rsa"]
development = [
    "id-manager",
    "tokio-test",
]

[[example]]
name = "client_c"
required-features = [
    "client",
    "evm",
]

[[example]]
name = "client_info"
required-features = ["client"]

[[example]]
name = "client_p"
required-features = ["client"]

[[example]]
name = "client_x"
required-features = ["client"]

[[example]]
name = "key_cert"
required-features = ["cert"]

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

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

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

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

[dependencies.avalanche-proto]
version = "0.19.0"
features = [
    "aliasreader",
    "keystore",
    "sharedmemory",
    "subnetlookup",
    "rpcdb",
    "google_protobuf",
]
optional = true

[dependencies.aws-manager]
version = "0.21.0"
optional = true

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

[dependencies.aws-smithy-types]
version = "0.51.0"
optional = true

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

[dependencies.bech32]
version = "0.9.1"

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

[dependencies.bs58]
version = "0.4.0"

[dependencies.bytes]
version = "1.2.1"

[dependencies.chrono]
version = "0.4.22"

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

[dependencies.ecdsa]
version = "0.14.8"
optional = false

[dependencies.ethers]
version = "1.0.0"
optional = true

[dependencies.ethers-core]
version = "1.0.0"
optional = true

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

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

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

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

[dependencies.hex]
version = "0.4.3"

[dependencies.hmac]
version = "0.12.1"
optional = false

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

[dependencies.http-manager]
version = "0.0.3"
optional = true

[dependencies.hyper]
version = "0.14.22"

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

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

[dependencies.k256]
version = "0.11.6"
features = [
    "ecdsa",
    "keccak256",
]
optional = false

[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-rlp",
    "impl-serde",
]
optional = false

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

[dependencies.rand]
version = "0.8.5"
optional = false

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

[dependencies.rcgen]
version = "0.10.0"
optional = true

[dependencies.ring]
version = "0.16.20"

[dependencies.ripemd]
version = "0.1.3"
optional = false

[dependencies.rlp]
version = "0.5.2"
optional = true

[dependencies.rlp-derive]
version = "0.1.0"
optional = true

[dependencies.rsa]
version = "0.6.1"
features = ["pem"]
optional = true

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

[dependencies.rustls]
version = "0.20.7"
optional = true

[dependencies.rustls-pemfile]
version = "1.0.1"

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

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

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

[dependencies.serde_json]
version = "1.0.87"

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

[dependencies.serde_yaml]
version = "0.9.14"

[dependencies.sha2]
version = "0.10.6"
optional = false

[dependencies.sha3]
version = "0.10.6"
optional = false

[dependencies.thiserror]
version = "1.0.37"

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

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

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

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

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

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

[dependencies.zerocopy]
version = "0.6.1"

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

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

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

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

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

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

[features]
avalanchego = []
cert = [
    "rcgen",
    "rsa",
    "rustls",
]
client = [
    "http-manager",
    "ethers",
    "ethers-core",
    "ethers-providers",
    "ethers-signers",
    "tokio",
]
codec_base64 = ["base64"]
codec_big_int = ["num-bigint"]
default = ["message_compress_gzip"]
evm = [
    "rlp",
    "rlp-derive",
]
kms_aws = [
    "aws-manager",
    "aws-sdk-kms",
    "aws-smithy-types",
]
libsecp256k1 = ["secp256k1"]
message_compress_gzip = ["flate2"]
mnemonic = [
    "bip32",
    "rand_core",
]
rpcchainvm = [
    "avalanche-proto",
    "futures",
    "http",
    "jsonrpc-core",
    "num-derive",
    "num-traits",
    "prost",
    "semver",
    "tokio",
    "tokio-stream",
    "tonic",
    "tonic-health",
    "tonic-reflection",
    "tower-service",
]
subnet_evm = []
