4 releases
0.1.1 | Sep 2, 2024 |
---|---|
0.1.1-beta.2 | Mar 24, 2024 |
0.1.1-beta.1 | Mar 23, 2024 |
0.1.1-alpha.2 | Mar 2, 2024 |
0.1.0 |
|
#255 in HTTP server
735KB
135 lines
🦀 Overview
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.
🚀 Getting Started
To use tokio-console-web
, follow these steps:
-
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();
-
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
🛠️ Contributing
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.
⚖️ License
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)
Dependencies
~0–10MB
~94K SLoC