Welcome to the tokio-console-web
project! This project is a web-based console for the console-subscriber crate. It is designed to be a simple, easy-to-use, and powerful tool for monitoring and debugging your tokio
applications.
To use tokio-console-web
, follow these steps:
-
Enable gRPC-Web:
-
Enable the
grpc-web
feature in yourconsole-subscriber
dependency:[dependencies] console-subscriber = { version = "0.4.0", features = ["grpc-web"] }
-
Configure your application to use the
ConsoleLayer
with gRPC-Web enabled:use std::net::Ipv4Addr; console_subscriber::ConsoleLayer::builder() .enable_grpc_web(true) .server_addr((Ipv4Addr::UNSPECIFIED, 9999)) .init();
-
-
Using Docker (Recommended):
You can quickly get started by pulling the Docker image:
docker pull ghcr.io/rustin170506/tokio-console-web:latest docker run -p 3000:3000 ghcr.io/rustin170506/tokio-console-web:latest
-
Manual Setup:
If you prefer to set up manually, follow these steps:
-
Clone this repository and run
pnpm install
to install the dependencies.git clone https://github.com/Rustin170506/tokio-console-web.git cd tokio-console-web pnpm install
-
Install Rust toolchain.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Run
pnpm dev
to start the development server.pnpm dev
-
Access the web console at
http://127.0.0.1:3000
in your browser.
-
Contributions are welcome! Please feel free to submit a Pull Request. If you have any questions, please feel free to ask in the Discord server.
Licensed under either of these:
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)