add section about using tokio console with desktop

This commit is contained in:
Simon Laux
2024-10-03 11:08:48 +02:00
parent de7d6753a9
commit 09aa9712c4

View File

@@ -36,13 +36,20 @@ languages other than Rust, for example:
Run `deltachat-rpc-server --version` to check the version of the server.
Run `deltachat-rpc-server --openrpc` to get [OpenRPC](https://open-rpc.org/) specification of the provided JSON-RPC API.
## Usage with `tokio-console`
When build with `RUSTFLAGS="--cfg tokio_unstable"` console-subscriber is enabled.
That means that you can use [`tokio-console`](https://github.com/tokio-rs/console) to inspect active tokio tasks.
You can install it via `cargo install tokio-console`.
```
```sh
RUSTFLAGS="--cfg tokio_unstable" cargo run
```
```
### Usage in deltachat-desktop:
Follow steps from `deltachat-desktop/docs/UPDATE_CORE.md`, but run the `make_local_dev_version` script with the `tokio_unstable` rustflag:
```sh
RUSTFLAGS="--cfg tokio_unstable" python3 deltachat-rpc-server/npm-package/scripts/make_local_dev_version.py
```