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§
Functions§
- get_
onion_ name - serve
- Serve a web application over an onion service.