megalodon 1.0.1

Mastodon and Pleroma API client library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use megalodon::detector;
use std::env;

#[tokio::main]
async fn main() {
    tracing_subscriber::fmt::init();

    let Ok(url) = env::var("MASTODON_URL") else {
        println!("Specify MASTODON_URL!!");
        return;
    };
    let sns = detector(url.as_str()).await;
    println!("{:#?}", sns);
}