2022-06-02 04:17:12 -07:00
|
|
|
[package]
|
|
|
|
|
name = "activitypub_federation"
|
2024-07-16 03:29:28 -07:00
|
|
|
version = "0.5.8"
|
2022-06-02 04:17:12 -07:00
|
|
|
edition = "2021"
|
|
|
|
|
description = "High-level Activitypub framework"
|
2023-01-02 04:58:25 -08:00
|
|
|
keywords = ["activitypub", "activitystreams", "federation", "fediverse"]
|
2022-06-02 04:17:12 -07:00
|
|
|
license = "AGPL-3.0"
|
|
|
|
|
repository = "https://github.com/LemmyNet/activitypub-federation-rust"
|
2022-06-16 04:10:12 -07:00
|
|
|
documentation = "https://docs.rs/activitypub_federation/"
|
2022-06-02 04:17:12 -07:00
|
|
|
|
2023-12-01 06:40:12 -08:00
|
|
|
[features]
|
2024-07-25 02:02:10 -07:00
|
|
|
default = ["axum"]
|
2024-07-25 04:40:57 -07:00
|
|
|
axum = [
|
|
|
|
|
"dep:axum",
|
|
|
|
|
"dep:axum-extra",
|
|
|
|
|
"dep:tower",
|
|
|
|
|
"dep:hyper",
|
|
|
|
|
"dep:http-body-util",
|
|
|
|
|
]
|
2023-12-11 06:04:18 -08:00
|
|
|
diesel = ["dep:diesel"]
|
2023-12-01 06:40:12 -08:00
|
|
|
|
2024-04-09 02:28:57 -07:00
|
|
|
[lints.rust]
|
|
|
|
|
warnings = "deny"
|
|
|
|
|
deprecated = "deny"
|
|
|
|
|
|
|
|
|
|
[lints.clippy]
|
2024-06-11 02:16:04 -07:00
|
|
|
perf = { level = "deny", priority = -1 }
|
|
|
|
|
complexity = { level = "deny", priority = -1 }
|
2024-07-15 01:20:35 -07:00
|
|
|
dbg_macro = "deny"
|
2024-04-09 02:28:57 -07:00
|
|
|
inefficient_to_string = "deny"
|
2024-07-15 01:20:35 -07:00
|
|
|
items-after-statements = "deny"
|
2024-04-09 02:28:57 -07:00
|
|
|
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 04:17:12 -07:00
|
|
|
[dependencies]
|
2024-05-02 03:58:08 -07:00
|
|
|
chrono = { version = "0.4.38", features = ["clock"], default-features = false }
|
2024-07-16 03:29:14 -07:00
|
|
|
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-25 04:40:57 -07:00
|
|
|
reqwest = { version = "0.12.5", default-features = false, features = [
|
2024-07-16 02:48:45 -07:00
|
|
|
"json",
|
|
|
|
|
"stream",
|
|
|
|
|
"rustls-tls",
|
|
|
|
|
] }
|
2024-07-25 04:40:57 -07:00
|
|
|
reqwest-middleware = "0.3.2"
|
2023-10-24 02:34:42 -07:00
|
|
|
tracing = "0.1.40"
|
2024-05-02 03:58:08 -07:00
|
|
|
base64 = "0.22.1"
|
2024-07-15 01:20:35 -07:00
|
|
|
rand = "0.8.5"
|
|
|
|
|
rsa = "0.9.6"
|
2023-12-12 02:32:22 -08:00
|
|
|
once_cell = "1.19.0"
|
2024-07-25 04:40:57 -07:00
|
|
|
http = "1.1.0"
|
2024-07-15 01:20:35 -07:00
|
|
|
sha2 = { version = "0.10.8", features = ["oid"] }
|
2024-07-16 03:29:14 -07:00
|
|
|
thiserror = "1.0.62"
|
2024-05-02 03:58:08 -07:00
|
|
|
derive_builder = "0.20.0"
|
2024-07-16 03:29:14 -07:00
|
|
|
itertools = "0.13.0"
|
2024-03-04 07:23:46 -08:00
|
|
|
dyn-clone = "1.0.17"
|
2022-11-14 04:04:36 -08:00
|
|
|
enum_delegate = "0.2.0"
|
2023-10-24 02:34:42 -07:00
|
|
|
httpdate = "1.0.3"
|
2024-07-25 04:40:57 -07:00
|
|
|
http-signature-normalization-reqwest = { version = "0.12.0", default-features = false, features = [
|
2023-06-20 02:54:14 -07:00
|
|
|
"sha-2",
|
|
|
|
|
"middleware",
|
2023-12-01 06:40:12 -08:00
|
|
|
"default-spawner",
|
2023-06-20 02:54:14 -07:00
|
|
|
] }
|
2023-03-30 12:22:38 -07:00
|
|
|
http-signature-normalization = "0.7.0"
|
2024-07-16 03:29:14 -07:00
|
|
|
bytes = "1.6.1"
|
2024-01-02 02:33:58 -08:00
|
|
|
futures-core = { version = "0.3.30", default-features = false }
|
2024-05-02 03:58:08 -07:00
|
|
|
pin-project-lite = "0.2.14"
|
2023-03-30 12:22:38 -07:00
|
|
|
activitystreams-kinds = "0.3.0"
|
2024-07-15 01:20:35 -07:00
|
|
|
regex = { version = "1.10.5", default-features = false, features = [
|
|
|
|
|
"std",
|
|
|
|
|
"unicode",
|
|
|
|
|
] }
|
2024-07-16 03:29:14 -07:00
|
|
|
tokio = { version = "1.38.0", features = [
|
2023-06-20 02:54:14 -07:00
|
|
|
"sync",
|
|
|
|
|
"rt",
|
|
|
|
|
"rt-multi-thread",
|
|
|
|
|
"time",
|
|
|
|
|
] }
|
2024-07-16 03:29:14 -07:00
|
|
|
diesel = { version = "2.2.1", features = [
|
2024-07-15 01:20:35 -07:00
|
|
|
"postgres",
|
|
|
|
|
], default-features = false, optional = true }
|
2024-01-02 02:33:58 -08:00
|
|
|
futures = "0.3.30"
|
2024-07-16 03:29:14 -07:00
|
|
|
moka = { version = "0.12.8", features = ["future"] }
|
2022-11-28 13:19:56 -08:00
|
|
|
|
|
|
|
|
# Axum
|
2024-07-25 04:40:57 -07:00
|
|
|
axum = { version = "0.7.5", features = [
|
2023-06-20 02:54:14 -07:00
|
|
|
"json",
|
|
|
|
|
], default-features = false, optional = true }
|
2024-07-25 04:40:57 -07:00
|
|
|
axum-extra = { version = "0.9.3", features = ["typed-header"], optional = true }
|
2022-11-28 13:19:56 -08:00
|
|
|
tower = { version = "0.4.13", optional = true }
|
2024-07-25 04:40:57 -07:00
|
|
|
hyper = { version = "1.4.1", optional = true }
|
2024-07-16 03:29:14 -07:00
|
|
|
http-body-util = { version = "0.1.2", optional = true }
|
2022-06-02 04:17:12 -07:00
|
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-07-16 03:29:14 -07:00
|
|
|
anyhow = "1.0.86"
|
2024-05-02 03:58:08 -07:00
|
|
|
env_logger = "0.11.3"
|
2024-03-04 07:23:46 -08:00
|
|
|
tower-http = { version = "0.5.2", features = ["map-request-body", "util"] }
|
2024-07-25 04:40:57 -07:00
|
|
|
axum = { version = "0.7.5", features = [
|
2023-06-20 02:54:14 -07:00
|
|
|
"http1",
|
|
|
|
|
"tokio",
|
|
|
|
|
"query",
|
|
|
|
|
], default-features = false }
|
2024-07-25 04:40:57 -07:00
|
|
|
axum-macros = "0.4.1"
|
2024-07-16 03:29:14 -07:00
|
|
|
tokio = { version = "1.38.0", features = ["full"] }
|
2022-11-28 13:19:56 -08:00
|
|
|
|
2023-02-11 05:05:37 -08:00
|
|
|
[profile.dev]
|
|
|
|
|
strip = "symbols"
|
|
|
|
|
debug = 0
|
2022-11-28 13:19:56 -08:00
|
|
|
|
|
|
|
|
[[example]]
|
2023-02-19 04:26:01 -08:00
|
|
|
name = "local_federation"
|
|
|
|
|
path = "examples/local_federation/main.rs"
|
2023-03-07 14:01:36 -08:00
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
|
name = "live_federation"
|
|
|
|
|
path = "examples/live_federation/main.rs"
|