# 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-lightclient" version = "0.38.0" authors = ["Parity Technologies "] build = false publish = true autobins = false autoexamples = false autotests = false autobenches = false description = "Light Client for chain interaction" 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] default-features = true rustdoc-args = [ "--cfg", "docsrs", ] [package.metadata.playground] default-features = true [lib] name = "subxt_lightclient" path = "src/lib.rs" [dependencies.futures] version = "0.3.31" features = [ "std", "async-await", ] default-features = false [dependencies.futures-timer] version = "3" optional = true [dependencies.futures-util] version = "0.3.31" [dependencies.getrandom] version = "0.2" optional = true default-features = false [dependencies.js-sys] version = "0.3.70" optional = true [dependencies.pin-project] version = "1.1.5" optional = true [dependencies.send_wrapper] version = "0.6.0" optional = true [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.smoldot] version = "0.18.0" optional = true default-features = false [dependencies.smoldot-light] version = "0.16.2" default-features = false [dependencies.thiserror] version = "1.0.64" [dependencies.tokio] version = "1.40" features = ["sync"] default-features = false [dependencies.tokio-stream] version = "0.1.16" [dependencies.tracing] version = "0.1.40" default-features = false [dependencies.wasm-bindgen] version = "0.2.93" optional = true [dependencies.wasm-bindgen-futures] version = "0.4.43" optional = true [dependencies.web-sys] version = "0.3.70" features = [ "BinaryType", "CloseEvent", "MessageEvent", "WebSocket", ] optional = true [dependencies.web-time] version = "1.1" optional = true default-features = false [features] default = ["native"] native = [ "smoldot-light/std", "tokio/rt", ] web = [ "getrandom/js", "smoldot/std", "wasm-bindgen-futures", "futures-timer/wasm-bindgen", "web-time", "pin-project", "js-sys", "send_wrapper", "web-sys", "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"