# 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.74.0" name = "subxt" version = "0.38.0" authors = ["Parity Technologies "] build = false publish = true autobins = false autoexamples = false autotests = false autobenches = false description = "Submit extrinsics (transactions) to a substrate node via RPC" homepage = "https://www.parity.io/" documentation = "https://docs.rs/subxt" readme = "README.md" keywords = [ "parity", "substrate", "blockchain", ] license = "Apache-2.0 OR GPL-3.0" repository = "https://github.com/paritytech/subxt" [package.metadata.docs.rs] features = [ "default", "substrate-compat", "unstable-light-client", ] rustdoc-args = [ "--cfg", "docsrs", ] [package.metadata.playground] features = [ "default", "substrate-compat", "unstable-light-client", ] [lib] name = "subxt" path = "src/lib.rs" [[example]] name = "block_decoding_dynamic" path = "examples/block_decoding_dynamic.rs" [[example]] name = "block_decoding_static" path = "examples/block_decoding_static.rs" [[example]] name = "blocks_subscribing" path = "examples/blocks_subscribing.rs" [[example]] name = "constants_dynamic" path = "examples/constants_dynamic.rs" [[example]] name = "constants_static" path = "examples/constants_static.rs" [[example]] name = "events" path = "examples/events.rs" [[example]] name = "light_client_basic" path = "examples/light_client_basic.rs" required-features = [ "unstable-light-client", "jsonrpsee", ] [[example]] name = "light_client_local_node" path = "examples/light_client_local_node.rs" required-features = [ "unstable-light-client", "jsonrpsee", "native", ] [[example]] name = "rpc_legacy" path = "examples/rpc_legacy.rs" [[example]] name = "runtime_apis_dynamic" path = "examples/runtime_apis_dynamic.rs" [[example]] name = "runtime_apis_raw" path = "examples/runtime_apis_raw.rs" [[example]] name = "runtime_apis_static" path = "examples/runtime_apis_static.rs" [[example]] name = "setup_client_custom_rpc" path = "examples/setup_client_custom_rpc.rs" [[example]] name = "setup_client_offline" path = "examples/setup_client_offline.rs" [[example]] name = "setup_config_assethub" path = "examples/setup_config_assethub.rs" [[example]] name = "setup_config_custom" path = "examples/setup_config_custom.rs" [[example]] name = "setup_config_signed_extension" path = "examples/setup_config_signed_extension.rs" [[example]] name = "setup_reconnecting_rpc_client" path = "examples/setup_reconnecting_rpc_client.rs" required-features = ["reconnecting-rpc-client"] [[example]] name = "setup_rpc_chainhead_backend" path = "examples/setup_rpc_chainhead_backend.rs" [[example]] name = "storage_fetch" path = "examples/storage_fetch.rs" [[example]] name = "storage_fetch_dynamic" path = "examples/storage_fetch_dynamic.rs" [[example]] name = "storage_iterating" path = "examples/storage_iterating.rs" [[example]] name = "storage_iterating_dynamic" path = "examples/storage_iterating_dynamic.rs" [[example]] name = "storage_iterating_partial" path = "examples/storage_iterating_partial.rs" [[example]] name = "tx_basic" path = "examples/tx_basic.rs" [[example]] name = "tx_basic_frontier" path = "examples/tx_basic_frontier.rs" [[example]] name = "tx_boxed" path = "examples/tx_boxed.rs" [[example]] name = "tx_partial" path = "examples/tx_partial.rs" [[example]] name = "tx_status_stream" path = "examples/tx_status_stream.rs" [[example]] name = "tx_with_params" path = "examples/tx_with_params.rs" [dependencies.async-trait] version = "0.1.83" [dependencies.codec] version = "3.6.9" features = ["derive"] default-features = false package = "parity-scale-codec" [dependencies.derive-where] version = "1.2.7" [dependencies.either] version = "1.13.0" default-features = false [dependencies.finito] version = "0.1.0" optional = true default-features = false [dependencies.frame-metadata] version = "17.0.0" default-features = false [dependencies.futures] version = "0.3.31" features = ["std"] default-features = false [dependencies.getrandom] version = "0.2" optional = true default-features = false [dependencies.hex] version = "0.4.3" default-features = false [dependencies.impl-serde] version = "0.5.0" default-features = false [dependencies.jsonrpsee] version = "0.24.5" features = ["jsonrpsee-types"] optional = true [dependencies.polkadot-sdk] version = "0.7" features = ["sp-crypto-hashing"] default-features = false [dependencies.primitive-types] version = "0.13.1" features = [ "codec", "scale-info", "serde", ] default-features = false [dependencies.scale-bits] version = "0.6.0" features = ["default"] default-features = false [dependencies.scale-decode] version = "0.14.0" features = ["default"] default-features = false [dependencies.scale-encode] version = "0.8.0" features = ["default"] default-features = false [dependencies.scale-info] version = "2.11.4" features = ["default"] default-features = false [dependencies.scale-value] version = "0.17.0" features = ["default"] default-features = false [dependencies.serde] version = "1.0.210" features = [ "derive", "derive", ] default-features = false [dependencies.serde_json] version = "1.0.128" features = [ "default", "raw_value", ] default-features = false [dependencies.subxt-core] version = "0.38.0" features = ["std"] default-features = false [dependencies.subxt-lightclient] version = "0.38.0" optional = true default-features = false [dependencies.subxt-macro] version = "0.38.0" [dependencies.subxt-metadata] version = "0.38.0" features = ["std"] default-features = false [dependencies.thiserror] version = "1.0.64" [dependencies.tokio] version = "1.40" optional = true default-features = false [dependencies.tokio-util] version = "0.7.12" features = ["compat"] optional = true [dependencies.tracing] version = "0.1.40" default-features = false [dependencies.url] version = "2.5.2" [dependencies.wasm-bindgen-futures] version = "0.4.43" optional = true [dependencies.web-time] version = "1.1" default-features = false [dev-dependencies.assert_matches] version = "1.5.0" [dev-dependencies.bitvec] version = "1" default-features = false [dev-dependencies.codec] version = "3.6.9" features = [ "derive", "bit-vec", ] default-features = false package = "parity-scale-codec" [dev-dependencies.http-body] version = "1" [dev-dependencies.hyper] version = "1" [dev-dependencies.jsonrpsee] version = "0.24.5" features = ["server"] [dev-dependencies.polkadot-sdk] version = "0.7" features = [ "sp-core", "sp-keyring", "sp-runtime", "sp-crypto-hashing", ] default-features = false [dev-dependencies.scale-info] version = "2.11.4" features = ["bit-vec"] default-features = false [dev-dependencies.tokio] version = "1.40" features = [ "macros", "time", "rt-multi-thread", "sync", ] default-features = false [dev-dependencies.tower] version = "0.4" [dev-dependencies.tracing-subscriber] version = "0.3.18" features = ["env-filter"] [features] default = [ "jsonrpsee", "native", ] jsonrpsee = [ "dep:jsonrpsee", "runtime", ] native = [ "jsonrpsee?/async-client", "jsonrpsee?/client-ws-transport-tls", "jsonrpsee?/ws-client", "subxt-lightclient?/native", "tokio-util", "tokio?/sync", ] reconnecting-rpc-client = [ "dep:finito", "jsonrpsee", ] runtime = [ "tokio/rt", "wasm-bindgen-futures", ] runtime-metadata-path = ["subxt-macro/runtime-metadata-path"] substrate-compat = ["subxt-core/substrate-compat"] unstable-light-client = ["subxt-lightclient"] unstable-metadata = [] web = [ "jsonrpsee?/async-wasm-client", "jsonrpsee?/client-web-transport", "jsonrpsee?/wasm-client", "getrandom/js", "subxt-lightclient?/web", "subxt-macro/web", "tokio?/sync", "finito?/wasm-bindgen", ] [lints.clippy] type_complexity = "allow" [lints.clippy.all] level = "deny" priority = -1 [lints.rust] bad_style = "deny" improper_ctypes = "deny" missing_docs = "deny" no_mangle_generic_items = "deny" non_shorthand_field_patterns = "deny" overflowing_literals = "deny" path_statements = "deny" patterns_in_fns_without_body = "deny" unconditional_recursion = "deny" unused_allocation = "deny" unused_comparisons = "deny" unused_extern_crates = "deny" unused_parens = "deny"