5 releases

0.2.0 Jul 31, 2023
0.1.3 Nov 3, 2022
0.1.2 Aug 2, 2022
0.1.1 Jul 31, 2022
0.1.0 Jul 31, 2022

#26 in #edit

Download history 9/week @ 2024-02-18 21/week @ 2024-02-25 6/week @ 2024-03-03 15/week @ 2024-03-10 2/week @ 2024-03-17 107/week @ 2024-03-31

125 downloads per month
Used in chimg

Custom license

115KB
1K SLoC

eggbug

eggbug-rs is a bot library for cohost.org, providing an interface to create, read, edit, and delete posts.

use eggbug::{Post, Session};

// Log in
let session = Session::login("eggbug@website.invalid", "hunter2").await?;

// Describe a post
let mut post = Post {
    headline: "hello from eggbug-rs!".into(),
    markdown: "wow it's like a website in here".into(),
    ..Default::default()
};

// Create the post on the eggbug page
let id = session.create_post("eggbug", &mut post).await?;

// Oh wait we want to make that a link
post.markdown = "wow it's [like a website in here](https://cohost.org/hthrflwrs/post/25147-empty)".into();
session.edit_post("eggbug", id, &mut post).await?;

// Good job!

License

eggbug-rs is released under the terms of the Anti-Capitalist Software License, version 1.4.

Maintenance

eggbug-rs is "lightly maintained": pull requests are generally merged quickly and without testing or API review, and new releases will generally be "breaking" (e.g. 0.2.x -> 0.3.x).

Dependencies

~6–22MB
~338K SLoC