2024-04-06 16:56:13 +02:00
|
|
|
[package]
|
|
|
|
name = "apb"
|
2024-07-15 13:27:31 +02:00
|
|
|
version = "0.2.2"
|
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"]
|
2024-06-23 05:07:20 +02:00
|
|
|
repository = "https://moonlit.technology/alemi/upub"
|
2024-04-06 18:17:07 +02:00
|
|
|
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"
|
|
|
|
serde_json = { version = "1", optional = true }
|
2024-08-11 12:55:27 +02:00
|
|
|
sea-orm = { version = "1.0", optional = true, default-features = false }
|
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-07-15 13:26:56 +02:00
|
|
|
did-core = [] # incomplete, may be cool to support all of this: https://www.w3.org/TR/did-core/
|
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?
|