1
0
Fork 0
forked from alemi/upub
upub/apb
alemi 0c1160b42f
chore!: HUGE REFACTOR
not even sure stuff will stay this way but phewwwwww this was time
consuming asffff
2024-06-01 05:21:57 +02:00
..
src chore!: HUGE REFACTOR 2024-06-01 05:21:57 +02:00
Cargo.lock
Cargo.toml feat(apb)!: getters return field error 2024-06-01 01:04:03 +02:00
README.md

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!