2022-06-02 16:47:12 +05:30
|
|
|
[package]
|
|
|
|
name = "activitypub_federation"
|
2023-07-26 19:57:33 +05:30
|
|
|
version = "0.5.0-beta.1"
|
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]
|
2023-06-12 19:49:30 +05:30
|
|
|
chrono = { version = "0.4.26", features = ["clock"], default-features = false }
|
|
|
|
serde = { version = "1.0.164", features = ["derive"] }
|
2023-03-31 00:52:38 +05:30
|
|
|
async-trait = "0.1.68"
|
2023-06-12 19:49:30 +05:30
|
|
|
url = { version = "2.4.0", features = ["serde"] }
|
|
|
|
serde_json = { version = "1.0.96", features = ["preserve_order"] }
|
|
|
|
anyhow = "1.0.71"
|
|
|
|
reqwest = { version = "0.11.18", features = ["json", "stream"] }
|
|
|
|
reqwest-middleware = "0.2.2"
|
2022-11-14 19:56:38 +05:30
|
|
|
tracing = "0.1.37"
|
2023-06-12 19:49:30 +05:30
|
|
|
base64 = "0.21.2"
|
|
|
|
openssl = "0.10.54"
|
|
|
|
once_cell = "1.18.0"
|
2023-03-31 00:52:38 +05:30
|
|
|
http = "0.2.9"
|
2022-09-30 03:06:50 +05:30
|
|
|
sha2 = "0.10.6"
|
2023-03-31 00:52:38 +05:30
|
|
|
thiserror = "1.0.40"
|
2023-02-19 17:56:01 +05:30
|
|
|
derive_builder = "0.12.0"
|
2022-09-30 03:06:50 +05:30
|
|
|
itertools = "0.10.5"
|
2023-03-31 00:52:38 +05:30
|
|
|
dyn-clone = "1.0.11"
|
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"
|
2023-06-20 15:24:14 +05:30
|
|
|
http-signature-normalization-reqwest = { version = "0.8.0", default-features = false, features = [
|
|
|
|
"sha-2",
|
|
|
|
"middleware",
|
|
|
|
] }
|
2023-03-31 00:52:38 +05:30
|
|
|
http-signature-normalization = "0.7.0"
|
|
|
|
bytes = "1.4.0"
|
2023-06-12 19:49:30 +05:30
|
|
|
futures-core = { version = "0.3.28", default-features = false }
|
2023-01-28 09:15:11 +05:30
|
|
|
pin-project-lite = "0.2.9"
|
2023-03-31 00:52:38 +05:30
|
|
|
activitystreams-kinds = "0.3.0"
|
2023-07-03 18:35:18 +05:30
|
|
|
regex = { version = "1.8.4", default-features = false, features = ["std", "unicode-case"] }
|
2023-06-20 15:24:14 +05:30
|
|
|
tokio = { version = "1.21.2", features = [
|
|
|
|
"sync",
|
|
|
|
"rt",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"time",
|
|
|
|
] }
|
2022-11-29 02:49:56 +05:30
|
|
|
|
2023-02-11 18:35:37 +05:30
|
|
|
# Actix-web
|
2023-03-31 00:52:38 +05:30
|
|
|
actix-web = { version = "4.3.1", default-features = false, optional = true }
|
2022-11-29 02:49:56 +05:30
|
|
|
|
|
|
|
# Axum
|
2023-06-20 15:24:14 +05:30
|
|
|
axum = { version = "0.6.18", features = [
|
|
|
|
"json",
|
|
|
|
"headers",
|
|
|
|
], default-features = false, 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-03-02 19:48:06 +05:30
|
|
|
default = ["actix-web", "axum"]
|
2023-02-11 18:35:37 +05:30
|
|
|
actix-web = ["dep:actix-web"]
|
2023-02-19 17:56:01 +05:30
|
|
|
axum = ["dep:axum", "dep:tower", "dep:hyper"]
|
2022-06-02 16:47:12 +05:30
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
rand = "0.8.5"
|
2023-03-31 00:52:38 +05:30
|
|
|
env_logger = "0.10.0"
|
|
|
|
tower-http = { version = "0.4.0", features = ["map-request-body", "util"] }
|
2023-06-20 15:24:14 +05:30
|
|
|
axum = { version = "0.6.18", features = [
|
|
|
|
"http1",
|
|
|
|
"tokio",
|
|
|
|
"query",
|
|
|
|
], default-features = false }
|
2023-03-31 00:52:38 +05:30
|
|
|
axum-macros = "0.3.7"
|
2023-06-20 15:24:14 +05:30
|
|
|
tokio = { version = "1.21.2", features = ["full"] }
|
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-19 17:56:01 +05:30
|
|
|
name = "local_federation"
|
|
|
|
path = "examples/local_federation/main.rs"
|
2023-03-08 03:31:36 +05:30
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "live_federation"
|
|
|
|
path = "examples/live_federation/main.rs"
|