activitypub-federation-rust/Cargo.toml

115 lines
3.1 KiB
TOML
Raw Permalink Normal View History

2022-06-02 04:17:12 -07:00
[package]
name = "activitypub_federation"
2025-10-15 03:40:30 -07:00
version = "0.7.0-beta.8"
2022-06-02 04:17:12 -07:00
edition = "2021"
description = "High-level Activitypub framework"
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]
default = ["actix-web", "axum"]
actix-web = ["dep:actix-web", "dep:http02"]
axum = ["dep:axum", "dep:tower"]
2025-06-05 06:37:37 -07:00
axum-original-uri = ["dep:axum", "axum/original-uri"]
2023-12-01 06:40:12 -08: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 04:17:12 -07:00
[dependencies]
chrono = { version = "0.4.41", features = ["clock"], default-features = false }
serde = { version = "1.0.219", features = ["derive"] }
async-trait = "0.1.88"
url = { version = "2.5.4", features = ["serde"] }
serde_json = { version = "1.0.140", features = ["preserve_order"] }
reqwest = { version = "0.12.18", default-features = false, features = [
"json",
"stream",
"rustls-tls",
] }
reqwest-middleware = "0.4.2"
tracing = "0.1.41"
2024-05-02 03:58:08 -07:00
base64 = "0.22.1"
rand = "0.8.5"
rsa = "0.9.8"
http = "1.3.1"
sha2 = { version = "0.10.9", features = ["oid"] }
thiserror = "2.0.12"
derive_builder = "0.20.2"
itertools = "0.14.0"
dyn-clone = "1.0.19"
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"
http-signature-normalization-reqwest = { version = "0.13.0", default-features = false, features = [
"sha-2",
"middleware",
2023-12-01 06:40:12 -08:00
"default-spawner",
] }
http-signature-normalization = "0.7.0"
bytes = "1.10.1"
futures-core = { version = "0.3.31", default-features = false }
pin-project-lite = "0.2.16"
activitystreams-kinds = "0.3.0"
regex = { version = "1.11.1", default-features = false, features = [
"std",
"unicode",
] }
tokio = { version = "1.45.0", features = [
"sync",
"rt",
"rt-multi-thread",
"time",
] }
futures = "0.3.31"
moka = { version = "0.12.10", features = ["future"] }
either = "1.15.0"
# Actix-web
actix-web = { version = "4.11.0", default-features = false, optional = true }
http02 = { package = "http", version = "0.2.12", optional = true }
# Axum
axum = { version = "0.8.4", features = [
"json",
], default-features = false, optional = true }
tower = { version = "0.5.2", optional = true }
2022-06-02 04:17:12 -07:00
[dev-dependencies]
anyhow = "1.0.98"
axum = { version = "0.8.4", features = ["macros"] }
axum-extra = { version = "0.10.1", features = ["typed-header"] }
env_logger = "0.11.8"
tokio = { version = "1.45.0", features = ["full"] }
[profile.dev]
strip = "symbols"
debug = 0
[[example]]
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"
2025-03-10 07:31:24 -07:00
# Speedup RSA key generation
# https://github.com/RustCrypto/RSA/blob/master/README.md#example
[profile.dev.package.num-bigint-dig]
opt-level = 3