2022-06-02 11:17:12 +00:00
|
|
|
[package]
|
|
|
|
name = "activitypub_federation"
|
2024-06-05 22:02:41 +00:00
|
|
|
version = "0.5.6"
|
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
|
|
|
|
2023-12-01 14:40:12 +00:00
|
|
|
[features]
|
|
|
|
default = ["actix-web", "axum"]
|
|
|
|
actix-web = ["dep:actix-web"]
|
|
|
|
axum = ["dep:axum", "dep:tower", "dep:hyper", "dep:http-body-util"]
|
2023-12-11 14:04:18 +00:00
|
|
|
diesel = ["dep:diesel"]
|
2023-12-01 14:40:12 +00:00
|
|
|
|
2024-04-09 09:28:57 +00:00
|
|
|
[lints.rust]
|
|
|
|
warnings = "deny"
|
|
|
|
deprecated = "deny"
|
|
|
|
|
|
|
|
[lints.clippy]
|
|
|
|
perf = "deny"
|
|
|
|
complexity = "deny"
|
|
|
|
dbg_macro = "deny"
|
|
|
|
inefficient_to_string = "deny"
|
|
|
|
items-after-statements = "deny"
|
|
|
|
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 11:17:12 +00:00
|
|
|
[dependencies]
|
2024-05-02 10:58:08 +00:00
|
|
|
chrono = { version = "0.4.38", features = ["clock"], default-features = false }
|
|
|
|
serde = { version = "1.0.200", features = ["derive"] }
|
|
|
|
async-trait = "0.1.80"
|
2023-12-01 14:40:12 +00:00
|
|
|
url = { version = "2.5.0", features = ["serde"] }
|
2024-05-02 10:58:08 +00:00
|
|
|
serde_json = { version = "1.0.116", features = ["preserve_order"] }
|
|
|
|
reqwest = { version = "0.11.27", features = ["json", "stream"] }
|
|
|
|
reqwest-middleware = "0.2.5"
|
2023-10-24 09:34:42 +00:00
|
|
|
tracing = "0.1.40"
|
2024-05-02 10:58:08 +00:00
|
|
|
base64 = "0.22.1"
|
2024-03-04 15:23:46 +00:00
|
|
|
openssl = "0.10.64"
|
2023-12-12 10:32:22 +00:00
|
|
|
once_cell = "1.19.0"
|
2024-05-02 10:58:08 +00:00
|
|
|
http = "0.2.12"
|
2023-10-24 09:34:42 +00:00
|
|
|
sha2 = "0.10.8"
|
2024-05-02 10:58:08 +00:00
|
|
|
thiserror = "1.0.59"
|
|
|
|
derive_builder = "0.20.0"
|
2024-03-04 15:23:46 +00:00
|
|
|
itertools = "0.12.1"
|
|
|
|
dyn-clone = "1.0.17"
|
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-12-01 14:40:12 +00:00
|
|
|
http-signature-normalization-reqwest = { version = "0.10.0", default-features = false, features = [
|
2023-06-20 09:54:14 +00:00
|
|
|
"sha-2",
|
|
|
|
"middleware",
|
2023-12-01 14:40:12 +00:00
|
|
|
"default-spawner",
|
2023-06-20 09:54:14 +00:00
|
|
|
] }
|
2023-03-30 19:22:38 +00:00
|
|
|
http-signature-normalization = "0.7.0"
|
2024-05-02 10:58:08 +00:00
|
|
|
bytes = "1.6.0"
|
2024-01-02 10:33:58 +00:00
|
|
|
futures-core = { version = "0.3.30", default-features = false }
|
2024-05-02 10:58:08 +00:00
|
|
|
pin-project-lite = "0.2.14"
|
2023-03-30 19:22:38 +00:00
|
|
|
activitystreams-kinds = "0.3.0"
|
2024-05-02 10:58:08 +00:00
|
|
|
regex = { version = "1.10.4", default-features = false, features = ["std", "unicode-case"] }
|
|
|
|
tokio = { version = "1.37.0", features = [
|
2023-06-20 09:54:14 +00:00
|
|
|
"sync",
|
|
|
|
"rt",
|
|
|
|
"rt-multi-thread",
|
|
|
|
"time",
|
|
|
|
] }
|
2024-05-02 10:58:08 +00:00
|
|
|
diesel = { version = "2.1.6", features = ["postgres"], default-features = false, optional = true }
|
2024-01-02 10:33:58 +00:00
|
|
|
futures = "0.3.30"
|
2024-05-02 10:58:08 +00:00
|
|
|
moka = { version = "0.12.7", features = ["future"] }
|
2022-11-28 21:19:56 +00:00
|
|
|
|
2023-02-11 13:05:37 +00:00
|
|
|
# Actix-web
|
2024-03-04 15:23:46 +00:00
|
|
|
actix-web = { version = "4.5.1", 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 }
|
2024-05-02 10:58:08 +00:00
|
|
|
http-body-util = {version = "0.1.1", optional = true }
|
2022-06-02 11:17:12 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-05-02 10:58:08 +00:00
|
|
|
anyhow = "1.0.82"
|
2022-06-02 11:17:12 +00:00
|
|
|
rand = "0.8.5"
|
2024-05-02 10:58:08 +00:00
|
|
|
env_logger = "0.11.3"
|
2024-03-04 15:23:46 +00:00
|
|
|
tower-http = { version = "0.5.2", features = ["map-request-body", "util"] }
|
2023-10-24 09:34:42 +00:00
|
|
|
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"
|
2024-05-02 10:58:08 +00:00
|
|
|
tokio = { version = "1.37.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"
|