upub/apb/Cargo.toml

44 lines
1.5 KiB
TOML
Raw Normal View History

[package]
name = "apb"
2024-07-15 13:27:31 +02:00
version = "0.2.2"
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"
[lib]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
chrono = { version = "0.4", features = ["serde"] }
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 }
reqwest = { version = "0.12", features = ["json"], optional = true }
[features]
default = ["activitypub-miscellaneous-terms", "send"]
# extensions
activitypub-miscellaneous-terms = [] # https://swicg.github.io/miscellany/
activitypub-counters = [] # https://ns.alemi.dev/as/counters/#
activitypub-fe = [] # https://ns.alemi.dev/as/fe/#
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/
did-core = [] # incomplete, may be cool to support all of this: https://www.w3.org/TR/did-core/
# full jsonld utilities
jsonld = []
# builtin utils
send = []
orm = ["dep:sea-orm"]
fetch = ["dep:reqwest"]
# providers
unstructured = ["dep:serde_json"]
#TODO eventually also make a structured base?