Skip to content

Commit

Permalink
Add rustflags in cargo config (#543)
Browse files Browse the repository at this point in the history
* add rustflag in cargo config

* add documentation of where the rustflags are set.

* #543 (comment)

* #543 (comment)
  • Loading branch information
b-yap authored Jul 22, 2024
1 parent 420b519 commit a70480c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["--cfg", "tokio_unstable"]
8 changes: 6 additions & 2 deletions clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,13 @@ due to the converted destination account not having trustlines set up for the re
The destination account is derived automatically from the account that called the extrinsic on-chain.

### Debugging with `tokio-console`
The vault is `tokio-console` ready, with the feature **_`allow-debugger`_**. _Remember to [set the rustflags](https://github.com/tokio-rs/console?tab=readme-ov-file#instrumenting-your-program)!_
The vault is `tokio-console` ready, with the feature **_`allow-debugger`_**.

> **Note**: [Rustflags are required](https://github.com/tokio-rs/console?tab=readme-ov-file#instrumenting-your-program) to make `tokio-console` work.
It has been defined directly in [.cargo/config.toml](../.cargo/config.toml).

```
RUSTFLAGS="--cfg tokio_unstable" cargo run --bin vault --features allow-debugger
cargo run --bin vault --features allow-debugger
```
[Install tokio-console](https://github.com/tokio-rs/console?tab=readme-ov-file#running-the-console)
and connect to the vault.
Expand Down

0 comments on commit a70480c

Please sign in to comment.