2022-06-02 11:17:12 +00:00
|
|
|
[package]
|
|
|
|
name = "activitypub_federation"
|
2023-11-20 13:35:51 +00:00
|
|
|
version = "0.5.0-beta.5"
|
2022-06-02 11:17:12 +00:00
|
|
|
edition = "2021"
|
|
|
|
description = "High-level Activitypub framework"
|
2023-01-02 12:58:25 +00:00
|
|
|
keywords = ["activitypub", "activitystreams", "federation", "fediverse"]
|
2022-06-02 11:17:12 +00:00
|
|
|
license = "AGPL-3.0"
|
|
|
|
repository = "https://github.com/LemmyNet/activitypub-federation-rust"
|
2022-06-16 11:10:12 +00:00
|
|
|
documentation = "https://docs.rs/activitypub_federation/"
|
2022-06-02 11:17:12 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2023-10-24 09:34:42 +00:00
|
|
|
chrono = { version = "0.4.31", features = ["clock"], default-features = false }
|
|
|
|
serde = { version = "1.0.189", features = ["derive"] }
|
|
|
|
async-trait = "0.1.74"
|
|
|
|
url = { version = "2.4.1", features = ["serde"] }
|
|
|
|
serde_json = { version = "1.0.107", features = ["preserve_order"] }
|
|
|
|
reqwest = { version = "0.11.22", features = ["json", "stream"] }
|
|
|
|
reqwest-middleware = "0.2.3"
|
|
|
|
tracing = "0.1.40"
|
|
|
|
base64 = "0.21.5"
|
|
|
|
openssl = "0.10.57"
|
2023-06-12 14:19:30 +00:00
|
|
|
once_cell = "1.18.0"
|
2023-03-30 19:22:38 +00:00
|
|
|
http = "0.2.9"
|
2023-10-24 09:34:42 +00:00
|
|
|
sha2 = "0.10.8"
|
|
|
|
thiserror = "1.0.50"
|
2023-02-19 12:26:01 +00:00
|
|
|
derive_builder = "0.12.0"
|
2022-09-29 21:36:50 +00:00
|
|
|
itertools = "0.10.5"
|
2023-10-24 09:34:42 +00:00
|
|
|
dyn-clone = "1.0.14"
|
2022-11-14 12:04:36 +00:00
|
|
|
enum_delegate = "0.2.0"
|
2023-10-24 09:34:42 +00:00
|
|
|
httpdate = "1.0.3"
|
2023-06-20 09:54:14 +00:00
|
|
|
http-signature-normalization-reqwest = { version = "0.8.0", default-features = false, features = [
|
|
|
|
"sha-2",
|
|
|
|
"middleware",
|
|
|
|
] }
|
2023-03-30 19:22:38 +00:00
|
|
|
http-signature-normalization = "0.7.0"
|
2023-10-24 09:34:42 +00:00
|
|
|
bytes = "1.5.0"
|
2023-06-12 14:19:30 +00:00
|
|
|
futures-core = { version = "0.3.28", default-features = false }
|
2023-10-24 09:34:42 +00:00
|
|
|
pin-project-lite = "0.2.13"
|
2023-03-30 19:22:38 +00:00
|
|
|
activitystreams-kinds = "0.3.0"
|
2023-10-24 09:34:42 +00:00
|
|
|
regex = { version = "1.10.2", default-features = false, features = ["std", "unicode-case"] }
|
|
|
|
tokio = { version = "1.33.0", features = [
|
2023-06-20 09:54:14 +00:00
|
|
|
"sync",
|
|
|
|
"rt",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"time",
|
|
|
|
] }
|
2022-11-28 21:19:56 +00:00
|
|
|
|
2023-02-11 13:05:37 +00:00
|
|
|
# Actix-web
|
2023-10-24 09:34:42 +00:00
|
|
|
actix-web = { version = "4.4.0", default-features = false, optional = true }
|
2022-11-28 21:19:56 +00:00
|
|
|
|
|
|
|
# Axum
|
2023-10-24 09:34:42 +00:00
|
|
|
axum = { version = "0.6.20", features = [
|
2023-06-20 09:54:14 +00:00
|
|
|
"json",
|
|
|
|
"headers",
|
|
|
|
], default-features = false, optional = true }
|
2022-11-28 21:19:56 +00:00
|
|
|
tower = { version = "0.4.13", optional = true }
|
|
|
|
hyper = { version = "0.14", optional = true }
|
2023-09-01 09:19:22 +00:00
|
|
|
futures = "0.3.28"
|
2023-10-24 09:34:42 +00:00
|
|
|
moka = { version = "0.11.3", features = ["future"] }
|
2022-11-28 21:19:56 +00:00
|
|
|
|
|
|
|
[features]
|
2023-03-02 14:18:06 +00:00
|
|
|
default = ["actix-web", "axum"]
|
2023-02-11 13:05:37 +00:00
|
|
|
actix-web = ["dep:actix-web"]
|
2023-02-19 12:26:01 +00:00
|
|
|
axum = ["dep:axum", "dep:tower", "dep:hyper"]
|
2022-06-02 11:17:12 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2023-11-20 10:42:47 +00:00
|
|
|
anyhow = "1.0.75"
|
2022-06-02 11:17:12 +00:00
|
|
|
rand = "0.8.5"
|
2023-03-30 19:22:38 +00:00
|
|
|
env_logger = "0.10.0"
|
2023-10-24 09:34:42 +00:00
|
|
|
tower-http = { version = "0.4.4", features = ["map-request-body", "util"] }
|
|
|
|
axum = { version = "0.6.20", features = [
|
2023-06-20 09:54:14 +00:00
|
|
|
"http1",
|
|
|
|
"tokio",
|
|
|
|
"query",
|
|
|
|
], default-features = false }
|
2023-10-24 09:34:42 +00:00
|
|
|
axum-macros = "0.3.8"
|
|
|
|
tokio = { version = "1.33.0", features = ["full"] }
|
2022-11-28 21:19:56 +00:00
|
|
|
|
2023-02-11 13:05:37 +00:00
|
|
|
[profile.dev]
|
|
|
|
strip = "symbols"
|
|
|
|
debug = 0
|
2022-11-28 21:19:56 +00:00
|
|
|
|
|
|
|
[[example]]
|
2023-02-19 12:26:01 +00:00
|
|
|
name = "local_federation"
|
|
|
|
path = "examples/local_federation/main.rs"
|
2023-03-07 22:01:36 +00:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "live_federation"
|
|
|
|
path = "examples/live_federation/main.rs"
|