Skip to content

Commit 48d271e

Browse files
committed
Update subxt and related
1 parent ae90f82 commit 48d271e

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[package]
2-
name = "my-project"
2+
name = "my_project"
33
version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7-
subxt = "0.39.0"
8-
subxt-signer = "0.39.0"
9-
tokio = { version = "1.43.0", features = ["rt", "macros"] }
7+
subxt = "0.41.0"
8+
subxt-signer = "0.41.0"
9+
tokio = { version = "1.44.2", features = ["rt", "macros"] }

develop/toolkit/api-libraries/subxt.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@ To use subxt in your project, you must install the necessary dependencies. Each
2626
1. **Install the subxt CLI** - [`subxt-cli`](https://crates.io/crates/subxt-cli){target=\_blank} is a command-line tool that provides utilities for working with Polkadot SDK metadata. In the context of subxt, it is essential to download chain metadata, which is required to generate type-safe Rust interfaces for interacting with the blockchain. Install it using:
2727

2828
```bash
29-
cargo install subxt-cli
29+
cargo install subxt-cli@{{dependencies.crates.subxt_cli.version}}
3030
```
3131

3232
2. **Add core dependencies** - these dependencies are essential for interacting with the blockchain:
3333

3434
- **[subxt](https://crates.io/crates/subxt){target=\_blank}** - the main library for communicating with Polkadot SDK nodes. It handles RPC requests, encoding/decoding, and type generation
3535

3636
```bash
37-
cargo add subxt
37+
cargo add subxt@{{dependencies.crates.subxt.version}}
3838
```
3939

4040
- **[subxt-signer](https://crates.io/crates/subxt-signer){target=\_blank}** - provides cryptographic functionality for signing transactions. Without this, you can only read data but cannot submit transactions
4141

4242
```bash
43-
cargo add subxt-signer
43+
cargo add subxt-signer@{{dependencies.crates.subxt_signer.version}}
4444
```
4545

4646
- **[tokio](https://crates.io/crates/tokio){target=\_blank}** - an asynchronous runtime for Rust. Since blockchain operations are async, Tokio enables the efficient handling of network requests. The `rt` feature enables Tokio's runtime, including the current-thread single-threaded scheduler, which is necessary for async execution. The `macros` feature provides procedural macros like `#[tokio::main]` to simplify runtime setup
4747
4848
```bash
49-
cargo add tokio --features rt,macros
49+
cargo add tokio@{{dependencies.crates.tokio.version}} --features rt,macros
5050
```
5151
5252
After adding the dependencies, your `Cargo.toml` should look like this:

llms.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7797,41 +7797,41 @@ To use subxt in your project, you must install the necessary dependencies. Each
77977797
1. **Install the subxt CLI** - [`subxt-cli`](https://crates.io/crates/subxt-cli){target=\_blank} is a command-line tool that provides utilities for working with Polkadot SDK metadata. In the context of subxt, it is essential to download chain metadata, which is required to generate type-safe Rust interfaces for interacting with the blockchain. Install it using:
77987798

77997799
```bash
7800-
cargo install subxt-cli
7800+
cargo install subxt-cli@{{dependencies.crates.subxt_cli.version}}
78017801
```
78027802

78037803
2. **Add core dependencies** - these dependencies are essential for interacting with the blockchain:
78047804

78057805
- **[subxt](https://crates.io/crates/subxt){target=\_blank}** - the main library for communicating with Polkadot SDK nodes. It handles RPC requests, encoding/decoding, and type generation
78067806

78077807
```bash
7808-
cargo add subxt
7808+
cargo add subxt@{{dependencies.crates.subxt.version}}
78097809
```
78107810

78117811
- **[subxt-signer](https://crates.io/crates/subxt-signer){target=\_blank}** - provides cryptographic functionality for signing transactions. Without this, you can only read data but cannot submit transactions
78127812

78137813
```bash
7814-
cargo add subxt-signer
7814+
cargo add subxt-signer@{{dependencies.crates.subxt_signer.version}}
78157815
```
78167816

78177817
- **[tokio](https://crates.io/crates/tokio){target=\_blank}** - an asynchronous runtime for Rust. Since blockchain operations are async, Tokio enables the efficient handling of network requests. The `rt` feature enables Tokio's runtime, including the current-thread single-threaded scheduler, which is necessary for async execution. The `macros` feature provides procedural macros like `#[tokio::main]` to simplify runtime setup
78187818

78197819
```bash
7820-
cargo add tokio --features rt,macros
7820+
cargo add tokio@{{dependencies.crates.tokio.version}} --features rt,macros
78217821
```
78227822

78237823
After adding the dependencies, your `Cargo.toml` should look like this:
78247824

78257825
```toml
78267826
[package]
7827-
name = "my-project"
7827+
name = "my_project"
78287828
version = "0.1.0"
78297829
edition = "2021"
78307830

78317831
[dependencies]
7832-
subxt = "0.39.0"
7833-
subxt-signer = "0.39.0"
7834-
tokio = { version = "1.43.0", features = ["rt", "macros"] }
7832+
subxt = "0.41.0"
7833+
subxt-signer = "0.41.0"
7834+
tokio = { version = "1.44.2", features = ["rt", "macros"] }
78357835
```
78367836

78377837
## Get Started

variables.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ dependencies:
2626
crates:
2727
subxt:
2828
name: subxt
29-
version: 0.40.0
30-
subxt-cli:
29+
version: 0.41.0
30+
subxt_cli:
3131
name: subxt-cli
32-
version: 0.40.0
33-
subxt-signer:
32+
version: 0.41.0
33+
subxt_signer:
3434
name: subxt-signer
35-
version: 0.40.0
35+
version: 0.41.0
3636
tokio:
3737
name: tokio
38-
version: 1.44.0
38+
version: 1.44.2
3939
chain_spec_builder:
4040
name: staging-chain-spec-builder
4141
version: 9.0.0

0 commit comments

Comments
 (0)