2022-06-02 16:47:12 +05:30
|
|
|
[package]
|
|
|
|
name = "activitypub_federation"
|
2022-11-23 16:55:32 +05:30
|
|
|
version = "0.3.4"
|
2022-06-02 16:47:12 +05:30
|
|
|
edition = "2021"
|
|
|
|
description = "High-level Activitypub framework"
|
2023-01-02 18:28:25 +05:30
|
|
|
keywords = ["activitypub", "activitystreams", "federation", "fediverse"]
|
2022-06-02 16:47:12 +05:30
|
|
|
license = "AGPL-3.0"
|
|
|
|
repository = "https://github.com/LemmyNet/activitypub-federation-rust"
|
2022-06-16 16:40:12 +05:30
|
|
|
documentation = "https://docs.rs/activitypub_federation/"
|
2022-06-02 16:47:12 +05:30
|
|
|
|
|
|
|
[dependencies]
|
2022-11-14 19:56:38 +05:30
|
|
|
chrono = { version = "0.4.23", features = ["clock"], default-features = false }
|
|
|
|
serde = { version = "1.0.147", features = ["derive"] }
|
|
|
|
async-trait = "0.1.58"
|
2022-09-30 03:06:50 +05:30
|
|
|
url = { version = "2.3.1", features = ["serde"] }
|
2022-11-14 19:56:38 +05:30
|
|
|
serde_json = { version = "1.0.87", features = ["preserve_order"] }
|
|
|
|
anyhow = "1.0.66"
|
2023-01-28 09:15:11 +05:30
|
|
|
reqwest = { version = "0.11.12", features = ["json", "stream"] }
|
2022-11-23 16:55:08 +05:30
|
|
|
reqwest-middleware = "0.2.0"
|
2022-11-14 19:56:38 +05:30
|
|
|
tracing = "0.1.37"
|
|
|
|
base64 = "0.13.1"
|
2022-09-30 03:06:50 +05:30
|
|
|
openssl = "0.10.42"
|
2022-11-14 19:56:38 +05:30
|
|
|
once_cell = "1.16.0"
|
2022-06-07 18:34:24 +05:30
|
|
|
http = "0.2.8"
|
2022-09-30 03:06:50 +05:30
|
|
|
sha2 = "0.10.6"
|
|
|
|
background-jobs = "0.13.0"
|
|
|
|
thiserror = "1.0.37"
|
2022-06-02 16:47:12 +05:30
|
|
|
derive_builder = "0.11.2"
|
2022-09-30 03:06:50 +05:30
|
|
|
itertools = "0.10.5"
|
2022-10-28 16:07:51 +05:30
|
|
|
dyn-clone = "1.0.9"
|
2022-11-14 17:34:36 +05:30
|
|
|
enum_delegate = "0.2.0"
|
2022-11-23 16:55:08 +05:30
|
|
|
httpdate = "1.0.2"
|
2022-11-29 02:49:56 +05:30
|
|
|
http-signature-normalization-reqwest = { version = "0.7.1", default-features = false, features = ["sha-2", "middleware"] }
|
|
|
|
http-signature-normalization = "0.6.0"
|
|
|
|
actix-rt = { version = "2.7.0" }
|
2023-01-28 09:15:11 +05:30
|
|
|
bytes = "1.3.0"
|
|
|
|
futures-core = { version = "0.3.25", default-features = false }
|
|
|
|
pin-project-lite = "0.2.9"
|
2022-11-29 02:49:56 +05:30
|
|
|
|
2023-02-11 18:35:37 +05:30
|
|
|
# Actix-web
|
2022-11-29 02:49:56 +05:30
|
|
|
actix-web = { version = "4.2.1", default-features = false, optional = true }
|
|
|
|
|
|
|
|
# Axum
|
2023-02-11 18:35:37 +05:30
|
|
|
axum = { version = "0.6.0", features = ["json", "headers", "macros", "original-uri"], optional = true }
|
2022-11-29 02:49:56 +05:30
|
|
|
tower = { version = "0.4.13", optional = true }
|
|
|
|
hyper = { version = "0.14", optional = true }
|
|
|
|
|
|
|
|
[features]
|
2023-02-11 18:35:37 +05:30
|
|
|
default = []
|
|
|
|
actix-web = ["dep:actix-web"]
|
2022-11-29 02:49:56 +05:30
|
|
|
axum = [
|
|
|
|
"dep:axum",
|
|
|
|
"dep:tower",
|
|
|
|
"dep:hyper",
|
|
|
|
]
|
2022-06-02 16:47:12 +05:30
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
activitystreams-kinds = "0.2.1"
|
|
|
|
rand = "0.8.5"
|
|
|
|
actix-rt = "2.7.0"
|
2022-11-29 02:49:56 +05:30
|
|
|
tokio = { version = "1.21.2", features = ["full"] }
|
2022-11-14 19:56:38 +05:30
|
|
|
env_logger = { version = "0.9.3", default-features = false }
|
2023-02-11 18:35:37 +05:30
|
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
tower-http = { version = "0.3", features = ["map-request-body", "util", "trace"] }
|
2022-11-29 02:49:56 +05:30
|
|
|
|
2023-02-11 18:35:37 +05:30
|
|
|
[profile.dev]
|
|
|
|
strip = "symbols"
|
|
|
|
debug = 0
|
2022-11-29 02:49:56 +05:30
|
|
|
|
|
|
|
[[example]]
|
2023-02-11 18:35:37 +05:30
|
|
|
name = "simple_federation"
|
|
|
|
path = "examples/simple_federation/main.rs"
|