upub/apb
alemi 0dedb4d243
feat(apb): all owned by default
references are cool but it was mostly cloned anyway so may aswell be
consistent. it would be awesome to make a Node which works by references
eventually, so it can be Copy, but probably quite annoying to make
2024-11-20 19:19:20 +01:00
..
src feat(apb): all owned by default 2024-11-20 19:19:20 +01:00
Cargo.lock feat: separated apb types into crate, reworked 2024-04-06 16:56:13 +02:00
Cargo.toml feat(apb): add optional shortcuts 2024-11-20 18:02:54 +01:00
README.md docs: document crate a little 2024-04-06 19:16:15 +02:00

apb

traits and types for implementing ActivityPub

apb implements all ActivityStreams types as traits, so that implementing structs don't need to hold all possible fields, but only implement getters for relevant ones

apb also provides a Node<T> enum, which can represent ActivityPub nodes (empty, link, object, array)

read more in this crate's docs

why

upub uses these types to implement its federation, but I wanted to modularize apb types

state

this crate is still work in progress and favors upub's needs, get in touch if you'd like to help or tune apb to your project!