mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
1f6719346f
* Make `decl_runtime_apis!` implement `RuntimeApiInfo` for all runtime apis * Make the runtime side generate the info constants as well * Make `RuntimeApiInfo` implementation use the correct generics * Adds a test for the runtime api info stuff * Remove duplicated code by using block from `test-client` * Adds `compile_fail` tests for `api_version` * Adds documentation for `api_version` * Make `impl_runtime_apis!` generate `RUNTIME_API_VERSIONS` * Update documentation and tests for `RUNTIME_API_VERSIONS` * Implement `has_api` by using the `RuntimeApiInfo` * Make `impl_runtime_apis` check that trait identifiers are unique * Prefix all runtime api function with the corresponding trait So `execute_block` will be called `Core_execute_block`. This makes it possible to have traits implement a function with the same name. * Rebase master * Update after master rebase
21 lines
534 B
TOML
21 lines
534 B
TOML
[package]
|
|
name = "sr-api-macros"
|
|
version = "0.1.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
quote = "0.6"
|
|
syn = { version = "^0.15.22", features = [ "full", "fold", "extra-traits", "visit" ] }
|
|
proc-macro2 = "0.4"
|
|
blake2-rfc = "0.2"
|
|
|
|
[dev-dependencies]
|
|
substrate-client = { path = "../client" }
|
|
substrate-test-client = { path = "../test-client" }
|
|
sr-primitives = { path = "../sr-primitives" }
|
|
sr-version = { path = "../sr-version" }
|
|
substrate-primitives = { path = "../primitives" }
|