2024-04-06 16:56:13 +02:00
|
|
|
[package]
|
|
|
|
name = "apb"
|
2024-04-06 19:16:15 +02:00
|
|
|
version = "0.1.1"
|
2024-04-06 16:56:13 +02:00
|
|
|
edition = "2021"
|
2024-04-06 18:17:07 +02:00
|
|
|
authors = [ "alemi <me@alemi.dev>" ]
|
|
|
|
description = "Traits and types to handle ActivityPub objects"
|
|
|
|
license = "MIT"
|
|
|
|
keywords = ["activitypub", "activitystreams", "json"]
|
|
|
|
repository = "https://git.alemi.dev/upub.git"
|
|
|
|
readme = "README.md"
|
2024-04-06 16:56:13 +02:00
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
chrono = { version = "0.4", features = ["serde"] }
|
2024-04-06 18:04:14 +02:00
|
|
|
thiserror = "1"
|
|
|
|
paste = "1.0"
|
|
|
|
tracing = "0.1"
|
2024-04-11 00:27:17 +02:00
|
|
|
async-trait = "0.1"
|
2024-04-06 18:04:14 +02:00
|
|
|
serde_json = { version = "1", optional = true }
|
2024-04-06 16:56:13 +02:00
|
|
|
sea-orm = { version = "0.12", optional = true }
|
2024-04-06 18:04:14 +02:00
|
|
|
reqwest = { version = "0.12", features = ["json"], optional = true }
|
2024-04-06 16:56:13 +02:00
|
|
|
|
|
|
|
[features]
|
2024-05-20 02:39:23 +02:00
|
|
|
default = ["activitypub-miscellaneous-terms", "send"]
|
2024-05-01 21:14:23 +02:00
|
|
|
# extensions
|
2024-05-02 00:28:54 +02:00
|
|
|
activitypub-miscellaneous-terms = [] # https://swicg.github.io/miscellany/
|
2024-05-02 00:26:52 +02:00
|
|
|
activitypub-counters = [] # https://ns.alemi.dev/as/counters/#
|
2024-05-02 00:29:17 +02:00
|
|
|
activitypub-fe = [] # https://ns.alemi.dev/as/fe/#
|
2024-05-23 23:45:48 +02:00
|
|
|
ostatus = [] # https://ostatus.org# , but it redirects and 403??? just need this for conversation
|
|
|
|
toot = [] # http://joinmastodon.org/ns# , mastodon is weird tho??
|
2024-05-11 22:48:35 +02:00
|
|
|
litepub = [] # incomplete, https://litepub.social/
|
2024-05-31 21:29:51 +02:00
|
|
|
# full jsonld utilities
|
|
|
|
jsonld = []
|
2024-05-01 21:14:23 +02:00
|
|
|
# builtin utils
|
2024-05-20 02:39:23 +02:00
|
|
|
send = []
|
2024-04-06 18:04:14 +02:00
|
|
|
orm = ["dep:sea-orm"]
|
|
|
|
fetch = ["dep:reqwest"]
|
2024-05-01 21:14:23 +02:00
|
|
|
# providers
|
2024-04-06 18:04:14 +02:00
|
|
|
unstructured = ["dep:serde_json"]
|
2024-05-01 21:14:23 +02:00
|
|
|
#TODO eventually also make a structured base?
|