Crates.io | tinylog-gmi |
lib.rs | tinylog-gmi |
version | 0.1.0 |
source | src |
created_at | 2023-06-05 02:07:30.243809 |
updated_at | 2023-06-05 02:07:30.243809 |
description | Manage Gemini protocol Tinylog entries |
homepage | https://jeang3nie.codeberg.page |
repository | |
max_upload_size | |
id | 882703 |
size | 47,285 |
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.
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);