upub/apb/README.md

16 lines
713 B
Markdown
Raw Permalink Normal View History

2024-04-06 18:24:10 +02:00
# apb
> traits and types for implementing [ActivityPub](https://www.w3.org/TR/activitypub/)
`apb` implements all [ActivityStreams](https://www.w3.org/TR/activitystreams-core/) types as traits, so that implementing structs don't need to hold all possible fields, but only implement getters for relevant ones
2024-04-06 19:16:15 +02:00
`apb` also provides a `Node<T>` enum, which can represent ActivityPub nodes (empty, link, object, array)
2024-04-06 18:24:10 +02:00
2024-04-06 19:16:15 +02:00
read more in this crate's docs
2024-04-06 18:24:10 +02:00
## why
2024-04-06 19:16:15 +02:00
[upub](https://git.alemi.dev/upub.git) 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!