use actix_webfinger::Webfinger; use awc::Client; use std::error::Error; #[actix_rt::main] async fn main() -> Result<(), Box> { let client = Client::default(); let wf = Webfinger::fetch( &client, Some("acct:"), "asonix@localhost:8000", "localhost:8000", false, ) .await?; println!("asonix's webfinger:\n{:#?}", wf); Ok(()) }