Files
pezkuwi-subxt/substrate/primitives/api/test/Cargo.toml
T
Bastian Köcher 448989f5ec sp-api: Support nested transactions (#14447)
* sp-api: Support nested transactions

Adds support for nested transactions in `sp-api` by using `execute_in_transaction`. This was working
until a recent refactor, but this was actually not intended. However, supporting nested transactions
is a worthwhile feature to have. So, this pr "brings it back" and adds a test to ensure it will not break.

* Make clippy happy

* Assert that the runtime api type is not unwind safe

* Count number of transactions
2023-06-29 18:01:45 +02:00

38 lines
1.2 KiB
TOML

[package]
name = "sp-api-test"
version = "2.0.1"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
publish = false
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
[dependencies]
sp-api = { version = "4.0.0-dev", path = "../" }
substrate-test-runtime-client = { version = "2.0.0", path = "../../../test-utils/runtime/client" }
sp-version = { version = "22.0.0", path = "../../version" }
sp-tracing = { version = "10.0.0", path = "../../tracing" }
sp-runtime = { version = "24.0.0", path = "../../runtime" }
sp-consensus = { version = "0.10.0-dev", path = "../../consensus/common" }
sc-block-builder = { version = "0.10.0-dev", path = "../../../client/block-builder" }
codec = { package = "parity-scale-codec", version = "3.6.1" }
sp-state-machine = { version = "0.28.0", path = "../../state-machine" }
trybuild = "1.0.74"
rustversion = "1.0.6"
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
[dev-dependencies]
criterion = "0.4.0"
futures = "0.3.21"
log = "0.4.17"
sp-core = { version = "21.0.0", path = "../../core" }
static_assertions = "1.1.0"
[[bench]]
name = "bench"
harness = false