mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
add section about using tokio console with desktop
This commit is contained in:
@@ -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 --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.
|
Run `deltachat-rpc-server --openrpc` to get [OpenRPC](https://open-rpc.org/) specification of the provided JSON-RPC API.
|
||||||
|
|
||||||
|
|
||||||
## Usage with `tokio-console`
|
## Usage with `tokio-console`
|
||||||
|
|
||||||
When build with `RUSTFLAGS="--cfg tokio_unstable"` console-subscriber is enabled.
|
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.
|
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`.
|
You can install it via `cargo install tokio-console`.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
RUSTFLAGS="--cfg tokio_unstable" cargo run
|
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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user