From 09aa9712c46d476da1bd18a27fb55d62dd554774 Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Thu, 3 Oct 2024 11:08:48 +0200 Subject: [PATCH] add section about using tokio console with desktop --- deltachat-rpc-server/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/deltachat-rpc-server/README.md b/deltachat-rpc-server/README.md index 59ce420fd..d2f921057 100644 --- a/deltachat-rpc-server/README.md +++ b/deltachat-rpc-server/README.md @@ -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 -``` \ No newline at end of file +``` + +### 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 +```