activitypub-federation-rust/Cargo.toml

111 lines
3 KiB
TOML
Raw Normal View History

2022-06-02 11:17:12 +00:00
[package]
name = "activitypub_federation"
2024-11-19 13:32:14 +00:00
version = "0.6.1"
2022-06-02 11:17:12 +00:00
edition = "2021"
description = "High-level Activitypub framework"
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", "dep:http02"]
axum = ["dep:axum", "dep:tower"]
diesel = ["dep:diesel"]
2023-12-01 14:40:12 +00:00
[lints.rust]
warnings = "deny"
deprecated = "deny"
[lints.clippy]
perf = { level = "deny", priority = -1 }
complexity = { level = "deny", priority = -1 }
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]
2025-01-03 13:13:14 +00:00
chrono = { version = "0.4.39", features = ["clock"], default-features = false }
serde = { version = "1.0.217", features = ["derive"] }
async-trait = "0.1.84"
url = { version = "2.5.4", features = ["serde"] }
serde_json = { version = "1.0.134", features = ["preserve_order"] }
reqwest = { version = "0.12.12", default-features = false, features = [
"json",
"stream",
"rustls-tls",
] }
2025-01-03 13:13:14 +00:00
reqwest-middleware = "0.4.0"
tracing = "0.1.41"
2024-05-02 10:58:08 +00:00
base64 = "0.22.1"
rand = "0.8.5"
2025-01-03 13:13:14 +00:00
rsa = "0.9.7"
once_cell = "1.20.2"
http = "1.2.0"
sha2 = { version = "0.10.8", features = ["oid"] }
2025-01-03 13:13:14 +00:00
thiserror = "2.0.9"
derive_builder = "0.20.2"
itertools = "0.14.0"
2024-03-04 15:23:46 +00:00
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"
2025-01-03 13:13:14 +00:00
http-signature-normalization-reqwest = { version = "0.13.0", default-features = false, features = [
"sha-2",
"middleware",
2023-12-01 14:40:12 +00:00
"default-spawner",
] }
http-signature-normalization = "0.7.0"
2025-01-03 13:13:14 +00:00
bytes = "1.9.0"
futures-core = { version = "0.3.31", default-features = false }
pin-project-lite = "0.2.15"
activitystreams-kinds = "0.3.0"
2025-01-03 13:13:14 +00:00
regex = { version = "1.11.1", default-features = false, features = [
"std",
"unicode",
] }
2025-01-03 13:13:14 +00:00
tokio = { version = "1.42.0", features = [
"sync",
"rt",
"rt-multi-thread",
"time",
] }
2025-01-03 13:13:14 +00:00
diesel = { version = "2.2.6", features = [
"postgres",
], default-features = false, optional = true }
2025-01-03 13:13:14 +00:00
futures = "0.3.31"
moka = { version = "0.12.9", features = ["future"] }
# Actix-web
2025-01-03 13:13:14 +00:00
actix-web = { version = "4.9.0", default-features = false, optional = true }
http02 = { package = "http", version = "0.2.12", optional = true }
# Axum
2025-01-03 13:13:14 +00:00
axum = { version = "0.8.1", features = ["json"], default-features = false, optional = true }
tower = { version = "0.5.2", optional = true }
2022-06-02 11:17:12 +00:00
[dev-dependencies]
2025-01-03 13:13:14 +00:00
anyhow = "1.0.95"
axum = { version = "0.8.1", features = ["macros"] }
axum-extra = { version = "0.10.0", features = ["typed-header"] }
env_logger = "0.11.6"
tokio = { version = "1.42.0", features = ["full"] }
[profile.dev]
strip = "symbols"
debug = 0
[[example]]
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"