Crates.io | torrosion |
lib.rs | torrosion |
version | 0.3.5 |
source | src |
created_at | 2023-03-14 08:46:39.951748 |
updated_at | 2024-09-03 21:04:37.421254 |
description | A Tor library for Rust |
homepage | https://acmeforonions.org |
repository | https://github.com/AS207960/libtor |
max_upload_size | |
id | 809652 |
size | 366,226 |
#[tokio::main]
async fn main() {
pretty_env_logger::init();
let storage = torrosion::storage::FileStorage::new("./storage").await.unwrap();
let mut client = torrosion::Client::new(storage);
client.run().await;
while !client.ready().await {
tokio::time::sleep(std::time::Duration::from_secs(1)).await;
}
let hs_uri = hyper::Uri::from_static("https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion");
let hs_client = torrosion::hs::http::new_hs_client(client);
hs_client.get(hs_uri).await.unwrap();
}
With thanks to the Open Technology Fund for funding the work going into this library.