rustodon
rustodon copied to clipboard
Branch out ActivityPub library
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.
I don't know how ActivityPub is currently implemented, but the activitypub crate provides type-safe manipulation of AP objects.
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!
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.
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 the activitypub and activitystreams crates that I've built already do that.