trotter 0.2.1

Trotter 🎠 is an experimental crate that aims to make writing Gemini clients fun and easy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Parser;

#[derive(Parser)]
struct Cli {
    url: String,
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let Cli { url } = Cli::parse();

    println!("{}", trotter::trot(url).await?.gemtext()?);

    Ok(())
}