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 Mar 1, 2024

#272 in HTTP server

MIT license

735KB
135 lines

crates.io logo

🦀 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:

  1. Enable the grpc_web feature in your console-subscriber dependency:

    [dependencies]
    console-subscriber = { version = "0.4.0", features = ["grpc-web"] }
    
  2. 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();
    
  3. Install tokio-console-web using Cargo:

    cargo install tokio-console-web
    

    Additional installation methods can be found on the release page.

  4. 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:

Dependencies

~13–23MB
~314K SLoC