2022-06-02 16:47:12 +05:30
|
|
|
[package]
|
|
|
|
name = "activitypub_federation"
|
2024-07-16 15:59:28 +05:30
|
|
|
version = "0.5.8"
|
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
|
|
|
|
2023-12-01 20:10:12 +05:30
|
|
|
[features]
|
|
|
|
default = ["actix-web", "axum"]
|
|
|
|
actix-web = ["dep:actix-web"]
|
|
|
|
axum = ["dep:axum", "dep:tower", "dep:hyper", "dep:http-body-util"]
|
2023-12-11 19:34:18 +05:30
|
|
|
diesel = ["dep:diesel"]
|
2023-12-01 20:10:12 +05:30
|
|
|
|
2024-04-09 14:58:57 +05:30
|
|
|
[lints.rust]
|
|
|
|
warnings = "deny"
|
|
|
|
deprecated = "deny"
|
|
|
|
|
|
|
|
[lints.clippy]
|
2024-06-11 14:46:04 +05:30
|
|
|
perf = { level = "deny", priority = -1 }
|
|
|
|
complexity = { level = "deny", priority = -1 }
|
2024-07-15 13:50:35 +05:30
|
|
|
dbg_macro = "deny"
|
2024-04-09 14:58:57 +05:30
|
|
|
inefficient_to_string = "deny"
|
2024-07-15 13:50:35 +05:30
|
|
|
items-after-statements = "deny"
|
2024-04-09 14:58:57 +05:30
|
|
|
implicit_clone = "deny"
|
|
|
|
wildcard_imports = "deny"
|
|
|
|
cast_lossless = "deny"
|
|
|
|
manual_string_new = "deny"
|
|
|
|
redundant_closure_for_method_calls = "deny"
|
|
|
|
unwrap_used = "deny"
|
|
|
|
|
2022-06-02 16:47:12 +05:30
|
|
|
[dependencies]
|
2024-05-02 16:28:08 +05:30
|
|
|
chrono = { version = "0.4.38", features = ["clock"], default-features = false }
|
2024-07-16 15:59:14 +05:30
|
|
|
serde = { version = "1.0.204", features = ["derive"] }
|
|
|
|
async-trait = "0.1.81"
|
|
|
|
url = { version = "2.5.2", features = ["serde"] }
|
|
|
|
serde_json = { version = "1.0.120", features = ["preserve_order"] }
|
2024-07-16 15:18:45 +05:30
|
|
|
reqwest = { version = "0.11.27", default-features = false, features = [
|
|
|
|
"json",
|
|
|
|
"stream",
|
|
|
|
"rustls-tls",
|
|
|
|
] }
|
2024-05-02 16:28:08 +05:30
|
|
|
reqwest-middleware = "0.2.5"
|
2023-10-24 15:04:42 +05:30
|
|
|
tracing = "0.1.40"
|
2024-05-02 16:28:08 +05:30
|
|
|
base64 = "0.22.1"
|
2024-07-15 13:50:35 +05:30
|
|
|
rand = "0.8.5"
|
|
|
|
rsa = "0.9.6"
|
2023-12-12 16:02:22 +05:30
|
|
|
once_cell = "1.19.0"
|
2024-05-02 16:28:08 +05:30
|
|
|
http = "0.2.12"
|
2024-07-15 13:50:35 +05:30
|
|
|
sha2 = { version = "0.10.8", features = ["oid"] }
|
2024-07-16 15:59:14 +05:30
|
|
|
thiserror = "1.0.62"
|
2024-05-02 16:28:08 +05:30
|
|
|
derive_builder = "0.20.0"
|
2024-07-16 15:59:14 +05:30
|
|
|
itertools = "0.13.0"
|
2024-03-04 20:53:46 +05:30
|
|
|
dyn-clone = "1.0.17"
|
2022-11-14 17:34:36 +05:30
|
|
|
enum_delegate = "0.2.0"
|
2023-10-24 15:04:42 +05:30
|
|
|
httpdate = "1.0.3"
|
2023-12-01 20:10:12 +05:30
|
|
|
http-signature-normalization-reqwest = { version = "0.10.0", default-features = false, features = [
|
2023-06-20 15:24:14 +05:30
|
|
|
"sha-2",
|
|
|
|
"middleware",
|
2023-12-01 20:10:12 +05:30
|
|
|
"default-spawner",
|
2023-06-20 15:24:14 +05:30
|
|
|
] }
|
2023-03-31 00:52:38 +05:30
|
|
|
http-signature-normalization = "0.7.0"
|
2024-07-16 15:59:14 +05:30
|
|
|
bytes = "1.6.1"
|
2024-01-02 16:03:58 +05:30
|
|
|
futures-core = { version = "0.3.30", default-features = false }
|
2024-05-02 16:28:08 +05:30
|
|
|
pin-project-lite = "0.2.14"
|
2023-03-31 00:52:38 +05:30
|
|
|
activitystreams-kinds = "0.3.0"
|
2024-07-15 13:50:35 +05:30
|
|
|
regex = { version = "1.10.5", default-features = false, features = [
|
|
|
|
"std",
|
|
|
|
"unicode",
|
|
|
|
] }
|
2024-07-16 15:59:14 +05:30
|
|
|
tokio = { version = "1.38.0", features = [
|
2023-06-20 15:24:14 +05:30
|
|
|
"sync",
|
|
|
|
"rt",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"time",
|
|
|
|
] }
|
2024-07-16 15:59:14 +05:30
|
|
|
diesel = { version = "2.2.1", features = [
|
2024-07-15 13:50:35 +05:30
|
|
|
"postgres",
|
|
|
|
], default-features = false, optional = true }
|
2024-01-02 16:03:58 +05:30
|
|
|
futures = "0.3.30"
|
2024-07-16 15:59:14 +05:30
|
|
|
moka = { version = "0.12.8", features = ["future"] }
|
2022-11-29 02:49:56 +05:30
|
|
|
|
2023-02-11 18:35:37 +05:30
|
|
|
# Actix-web
|
2024-07-16 15:59:14 +05:30
|
|
|
actix-web = { version = "4.8.0", default-features = false, optional = true }
|
2022-11-29 02:49:56 +05:30
|
|
|
|
|
|
|
# Axum
|
2023-10-24 15:04:42 +05:30
|
|
|
axum = { version = "0.6.20", features = [
|
2023-06-20 15:24:14 +05:30
|
|
|
"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 }
|
2024-07-16 15:59:14 +05:30
|
|
|
http-body-util = { version = "0.1.2", optional = true }
|
2022-06-02 16:47:12 +05:30
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-07-16 15:59:14 +05:30
|
|
|
anyhow = "1.0.86"
|
2024-05-02 16:28:08 +05:30
|
|
|
env_logger = "0.11.3"
|
2024-03-04 20:53:46 +05:30
|
|
|
tower-http = { version = "0.5.2", features = ["map-request-body", "util"] }
|
2023-10-24 15:04:42 +05:30
|
|
|
axum = { version = "0.6.20", features = [
|
2023-06-20 15:24:14 +05:30
|
|
|
"http1",
|
|
|
|
"tokio",
|
|
|
|
"query",
|
|
|
|
], default-features = false }
|
2023-10-24 15:04:42 +05:30
|
|
|
axum-macros = "0.3.8"
|
2024-07-16 15:59:14 +05:30
|
|
|
tokio = { version = "1.38.0", 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"
|