Skip to content

AS207960/torrosion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Tor library for Rust

Example usage

#[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();
}

Acknowledgements

With thanks to the Open Technology Fund for funding the work going into this library.

Open Technology Fund Logo

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published