mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Move subxt-new to be the new subxt, and get first example working
This commit is contained in:
+34
-20
@@ -22,6 +22,14 @@ workspace = true
|
||||
# it's recommended to use `--no-default-features` and then select what you need.
|
||||
default = ["jsonrpsee", "native"]
|
||||
|
||||
# Features that we expect to be enabled for documentation.
|
||||
docs = [
|
||||
"default",
|
||||
"unstable-light-client",
|
||||
"runtime",
|
||||
"reconnecting-rpc-client",
|
||||
]
|
||||
|
||||
# Enable this for native (ie non web/wasm builds).
|
||||
# Exactly 1 of "web" and "native" is expected.
|
||||
native = [
|
||||
@@ -75,21 +83,27 @@ runtime-wasm-path = ["subxt-macro/runtime-wasm-path"]
|
||||
|
||||
[dependencies]
|
||||
async-trait = { workspace = true }
|
||||
base58 = { workspace = true }
|
||||
blake2 = { workspace = true }
|
||||
codec = { package = "parity-scale-codec", workspace = true, features = ["derive"] }
|
||||
derive-where = { workspace = true }
|
||||
scale-info = { workspace = true, features = ["default"] }
|
||||
scale-info-legacy = { workspace = true }
|
||||
scale-value = { workspace = true, features = ["default"] }
|
||||
scale-bits = { workspace = true, features = ["default"] }
|
||||
scale-decode = { workspace = true, features = ["default"] }
|
||||
scale-encode = { workspace = true, features = ["default"] }
|
||||
futures = { workspace = true }
|
||||
hex = { workspace = true }
|
||||
impl-serde = { workspace = true, default-features = false }
|
||||
keccak-hash = { workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde_json = { workspace = true, features = ["default", "raw_value"] }
|
||||
sp-crypto-hashing = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
frame-metadata = { workspace = true }
|
||||
frame-decode = { workspace = true, features = ["legacy-types"] }
|
||||
either = { workspace = true }
|
||||
web-time = { workspace = true }
|
||||
|
||||
@@ -101,10 +115,10 @@ jsonrpsee = { workspace = true, optional = true, features = ["jsonrpsee-types"]
|
||||
|
||||
# Other subxt crates we depend on.
|
||||
subxt-macro = { workspace = true }
|
||||
subxt-core = { workspace = true, features = ["std"] }
|
||||
subxt-metadata = { workspace = true, features = ["std"] }
|
||||
subxt-metadata = { workspace = true, features = ["std", "legacy"] }
|
||||
subxt-lightclient = { workspace = true, optional = true, default-features = false }
|
||||
subxt-rpcs = { workspace = true, features = ["subxt"] }
|
||||
subxt-rpcs = { workspace = true }
|
||||
subxt-utils-accountid32 = { workspace = true }
|
||||
|
||||
# For parsing urls to disallow insecure schemes
|
||||
url = { workspace = true }
|
||||
@@ -127,8 +141,8 @@ sp-core = { workspace = true, features = ["std"] }
|
||||
sp-keyring = { workspace = true, features = ["std"] }
|
||||
sp-runtime = { workspace = true, features = ["std"] }
|
||||
assert_matches = { workspace = true }
|
||||
subxt-signer = { path = "../signer", features = ["unstable-eth"] }
|
||||
subxt-rpcs = { workspace = true, features = ["subxt", "mock-rpc-client"] }
|
||||
subxt-signer = { workspace = true, features = ["unstable-eth", "subxt", "sr25519"] }
|
||||
subxt-rpcs = { workspace = true, features = ["mock-rpc-client"] }
|
||||
# Tracing subscriber is useful for light-client examples to ensure that
|
||||
# the `bootNodes` and chain spec are configured correctly. If all is fine, then
|
||||
# the light-client will emit INFO logs with
|
||||
@@ -140,23 +154,23 @@ tower = { workspace = true }
|
||||
hyper = { workspace = true }
|
||||
http-body = { workspace = true }
|
||||
|
||||
[[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 = "setup_reconnecting_rpc_client"
|
||||
path = "examples/setup_reconnecting_rpc_client.rs"
|
||||
required-features = ["reconnecting-rpc-client"]
|
||||
# [[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 = "setup_reconnecting_rpc_client"
|
||||
# path = "examples/setup_reconnecting_rpc_client.rs"
|
||||
# required-features = ["reconnecting-rpc-client"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = ["default", "unstable-light-client"]
|
||||
features = ["docs"]
|
||||
|
||||
[package.metadata.playground]
|
||||
features = ["default", "unstable-light-client"]
|
||||
|
||||
Reference in New Issue
Block a user