apb (0.2.1)

Published 2024-06-23 05:21:11 +02:00 by alemi in alemi/upub

Installation

[registry]
default = "forgejo"

[registries.forgejo]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add apb@0.2.1

About this package

Traits and types to handle ActivityPub objects

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!

Dependencies

ID Version
async-trait ^0.1
chrono ^0.4
paste ^1.0
reqwest ^0.12
sea-orm ^0.12
serde_json ^1
thiserror ^1
tracing ^0.1

Keywords

activitypub activitystreams json
Details
Cargo
2024-06-23 05:21:11 +02:00
16
alemi <me@alemi.dev>
MIT
16 KiB
Assets (1)
Versions (2) View all
0.2.2 2024-07-15
0.2.1 2024-06-23