# 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.70" name = "avalanche-types" version = "0.1.5" publish = true description = "Avalanche primitive types in Rust" homepage = "https://avax.network" readme = "README.md" license-file = "LICENSE" repository = "https://github.com/ava-labs/avalanche-rs/tree/main/crates/avalanche-types" [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] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] [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.73" [dependencies.aws-manager] version = "0.30.2" features = ["kms"] optional = true [dependencies.aws-sdk-kms] version = "0.30.0" optional = true [dependencies.base64] version = "0.21.2" optional = true [dependencies.bech32] version = "0.9.1" [dependencies.bip32] version = "0.5.1" optional = true [dependencies.blst] version = "0.3.10" [dependencies.bs58] version = "0.5.0" features = ["cb58"] [dependencies.bytes] version = "1.4.0" [dependencies.cert-manager] version = "0.0.11" [dependencies.chrono] version = "0.4.26" [dependencies.cmp-manager] version = "0.0.1" [dependencies.ecdsa] version = "0.16.7" features = [ "rfc6979", "verifying", ] [dependencies.ethers] version = "=2.0.11" features = ["eip712"] optional = true [dependencies.ethers-core] version = "=2.0.13" features = ["eip712"] [dependencies.ethers-providers] version = "=2.0.13" optional = true [dependencies.ethers-signers] version = "=2.0.13" 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" [dependencies.k256] version = "0.13.1" features = ["ecdsa"] [dependencies.lazy_static] version = "1.4.0" [dependencies.log] version = "0.4.20" [dependencies.num-bigint] version = "0.4.3" optional = true [dependencies.num-derive] version = "0.4.1" 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.12.1" optional = true [dependencies.rand] version = "0.8.5" [dependencies.rand_core] version = "0.6.4" features = ["std"] optional = true [dependencies.reqwest] version = "0.11.20" optional = true [dependencies.ring] version = "0.17.5" [dependencies.ripemd] version = "0.1.3" [dependencies.rlp] version = "0.5.2" features = ["std"] optional = true default-features = false [dependencies.rust-embed] version = "8.0.0" [dependencies.secp256k1] version = "0.28.1" features = [ "global-context", "rand-std", "recovery", ] optional = true [dependencies.semver] version = "1.0.17" optional = true [dependencies.serde] version = "1.0.186" features = ["derive"] [dependencies.serde_json] version = "1.0.105" [dependencies.serde_with] version = "3.3.0" features = ["hex"] [dependencies.serde_yaml] version = "0.9.25" [dependencies.sha2] version = "0.10.6" [dependencies.sha3] version = "0.10.8" [dependencies.spki] version = "0.7.2" [dependencies.strum] version = "0.25.0" [dependencies.thiserror] version = "1.0.47" [dependencies.tokio] version = "1.32.0" features = ["full"] optional = true [dependencies.tokio-stream] version = "0.1.14" features = ["net"] optional = true [dependencies.tonic] version = "0.11.0" features = ["gzip"] optional = true [dependencies.tonic-health] version = "0.11.0" optional = true [dependencies.tonic-reflection] version = "0.11.0" optional = true [dependencies.tower-service] version = "0.3.2" optional = true [dependencies.url] version = "2.4.0" [dependencies.zerocopy] version = "0.7.32" features = ["derive"] [dependencies.zeroize] version = "1.6.0" [dev-dependencies.env_logger] version = "0.11.1" [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" [features] avalanchego = ["coreth"] codec_base64 = ["base64"] codec_big_int = ["num-bigint"] coreth = [] 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", "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 = [] [lints.clippy]