Crates.io | tokio-console-web |
lib.rs | tokio-console-web |
version | 0.1.1 |
source | src |
created_at | 2024-03-01 05:57:45.552119 |
updated_at | 2024-09-02 01:17:55.695823 |
description | A web console for tokio |
homepage | |
repository | https://github.com/Rustin170506/tokio-console-web |
max_upload_size | |
id | 1158528 |
size | 1,145,500 |
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 the grpc_web
feature in your console-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();
Install tokio-console-web
using Cargo:
cargo install tokio-console-web
Additional installation methods can be found on the release page.
Start the tokio-console-web
server:
tokio-console-web
Access the web console at http://127.0.0.1:3333
in your browser.
For more options:
$ tokio-console-web --help
A web console for tokio
Usage: tokio-console-web[EXE] [OPTIONS]
Options:
--host <HOST> The address to listen on [default: 127.0.0.1]
--port <PORT> The port to listen on [default: 3333]
-h, --help Print help
-V, --version Print version
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: