mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 10:08:02 +00:00
ed421c56ee
* Rewrites `impl_runtime_apis!` macro as `proc-macro` * Adds some documentation * Require the `impl_runtime_apis` to use a path for accessing the trait * Make the runtime implement `GetNodeBlockType` * Moves first chunk of runtime api code into the `impl_runtime_apis` macro This also renames `ClientWithApi` into `RuntimeApi`. * Make `impl_runtime_apis` use `runtime` api version automatically * `decl_runtime_apis` automatically adds `Block: BlockT` as generic parameter * Remove function generic arguments in block builder api * Remove some unnused stuff from the `decl_runtime_apis` macro * Make `InherentData` working again * Make `impl_runtime_apis!` implement the `RuntimeApi` side as well * Make it compile again after rebasing with master * Split `sr-api-macros` into multiple files * Reimplement `decl_runtime_apis!` as proc_macro * Use `decl_runtime_apis!` for `Core` as well and improve error reporting * Adds documentation for `decl_runtime_apis!` and `impl_runtime_apis!` * Move some code * Adds compile fail tests * Adds a test and fixes some bugs * Make `impl_runtime_apis!` support `_` as parameter name * Fixes build errors with wasm * Wasm rebuild after master rebase * Apply suggestions from code review Co-Authored-By: bkchr <bkchr@users.noreply.github.com> * Addresses some grumbles * Adds test to ensure that method signatures need to match * New wasm files
60 lines
1.9 KiB
TOML
60 lines
1.9 KiB
TOML
[package]
|
|
name = "substrate-client"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
[dependencies]
|
|
error-chain = { version = "0.12", optional = true }
|
|
fnv = { version = "1.0", optional = true }
|
|
log = { version = "0.4", optional = true }
|
|
parking_lot = { version = "0.4", optional = true }
|
|
hex-literal = { version = "0.1", optional = true }
|
|
futures = { version = "0.1.17", optional = true }
|
|
slog = { version = "^2", optional = true }
|
|
heapsize = { version = "0.4", optional = true }
|
|
substrate-consensus-common = { path = "../consensus/common", optional = true }
|
|
substrate-executor = { path = "../executor", optional = true }
|
|
substrate-state-machine = { path = "../state-machine", optional = true }
|
|
substrate-keyring = { path = "../keyring", optional = true }
|
|
substrate-trie = { path = "../trie", optional = true }
|
|
substrate-telemetry = { path = "../telemetry", optional = true }
|
|
hash-db = { git = "https://github.com/paritytech/trie", optional = true }
|
|
kvdb = { version = "0.1", optional = true }
|
|
|
|
parity-codec = { version = "2.1", default-features = false }
|
|
substrate-primitives = { path = "../primitives", default-features = false }
|
|
sr-primitives = { path = "../sr-primitives", default-features = false }
|
|
sr-version = { path = "../sr-version", default-features = false }
|
|
sr-std = { path = "../sr-std", default-features = false }
|
|
sr-api-macros = { path = "../sr-api-macros" }
|
|
|
|
[dev-dependencies]
|
|
substrate-test-client = { path = "../test-client" }
|
|
kvdb-memorydb = "0.1"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"parity-codec/std",
|
|
"substrate-consensus-common",
|
|
"substrate-primitives/std",
|
|
"parking_lot",
|
|
"error-chain",
|
|
"fnv",
|
|
"log",
|
|
"hex-literal",
|
|
"futures",
|
|
"slog",
|
|
"heapsize",
|
|
"substrate-executor",
|
|
"sr-primitives/std",
|
|
"sr-version/std",
|
|
"sr-std/std",
|
|
"substrate-state-machine",
|
|
"substrate-keyring",
|
|
"substrate-trie",
|
|
"substrate-telemetry",
|
|
"hash-db",
|
|
"kvdb"
|
|
]
|