Crate onyums

Source
Expand description

§Onyums

Onyums is a simple axum wrapper for serving tor onion services.

§Example

use axum::{routing::get, Router};
use native_tls::Identity;
use tokio_native_tls::TlsAcceptor;
use onyums::serve;

#[tokio::main]
async fn main() {
    let app = Router::new().route("/", get(|| async { "Hello, World!" }));

    serve(app, "my_onion").await.unwrap();
}

Structs§

ConnectionInfo

Functions§

get_onion_name
serve
Serve a web application over an onion service.