rustodon icon indicating copy to clipboard operation
rustodon copied to clipboard

Branch out ActivityPub library

Open stevenroose opened this issue 6 years ago • 5 comments

It would be nice if all the code that implement the basic ActivityPub primitives would be accessible in a standalone library crate.

It would be very useful for developers trying to do other AP-related projects. It would also be better software design for rustodon, IMO.

stevenroose avatar Mar 21 '19 10:03 stevenroose

I don't know how ActivityPub is currently implemented, but the activitypub crate provides type-safe manipulation of AP objects.

elegaanz avatar Mar 21 '19 11:03 elegaanz

Definitely. I remember looking at the activitypub crate and finding a few things that I thought might be problematic for using it, but that was almost a year ago now and perhaps things have changed!

barzamin avatar Mar 21 '19 21:03 barzamin

Feel free to let me know what sorts of things you'd like to see from the activitypub crate. Right now, it's basically just a few types and traits related to the activitypub spec that attempt to help with what can go where.

asonix avatar Mar 22 '19 16:03 asonix

Personally probably mostly the JSON object specs. So that I can parse and build ActivityStreams and ActivityPub related objects. I don't exactly know the Pub<>Streams distinction spec-wise. Might as well be that all JSON is on ActivityStreams, in that case it could be just an ActivityStreams crate.

stevenroose avatar Mar 28 '19 10:03 stevenroose

@stevenroose the activitypub and activitystreams crates that I've built already do that.

asonix avatar Mar 28 '19 17:03 asonix