tinylog-gmi

Crates.iotinylog-gmi
lib.rstinylog-gmi
version0.1.0
sourcesrc
created_at2023-06-05 02:07:30.243809
updated_at2023-06-05 02:07:30.243809
descriptionManage Gemini protocol Tinylog entries
homepagehttps://jeang3nie.codeberg.page
repository
max_upload_size
id882703
size47,285
Nathan Fisher (nfisher1226)

documentation

README

Tinylog

About

The tinylog format is a minimal microblog format for the small web (Gemini, Spartan etc). This library implements a set of types useful for working with Tinylogs which can be readily converted to and from strings. This would be useful for automating adding entries or possibly in an aggregator type application.

Usage

Parsing a Tinylog from a String

// Assume some type `T` which implements the `Time` trait
use tinylog::Tinylog;

const TL: &'static str = include_str!("../test/tinylog.gmi");
let log = TL.parse::<T>().unwrap();
assert_eq!(log.entries.len(), 2);
Commit count: 0

cargo fmt