[package]
edition = "2021"
name = "moonproof-node-client"
version = "0.2.2"
authors = ["sashoush"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for the Midnight node's Substrate submission RPC"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/salamaashoush/moonproof"
[features]
default = ["polkadot"]
polkadot = ["dep:subxt"]
[lib]
name = "moonproof_node_client"
path = "src/lib.rs"
[[test]]
name = "polkadot_smoke"
path = "tests/polkadot_smoke.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.futures]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.moonproof-macros]
version = "0.2.2"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"time",
]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]
[dev-dependencies.url]
version = "2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.subxt]
version = "0.51"
features = [
"jsonrpsee",
"native",
]
optional = true
default-features = false
[target.'cfg(target_arch = "wasm32")'.dependencies.subxt]
version = "0.51"
features = [
"jsonrpsee",
"web",
]
optional = true
default-features = false
[lints.clippy]
dbg_macro = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
todo = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "deny"
priority = -1
[lints.rust]
unsafe_code = "forbid"