activitypub-federation-rust/Cargo.toml

90 lines
2.5 KiB
TOML
Raw Normal View History

2022-06-02 11:17:12 +00:00
[package]
name = "activitypub_federation"
2023-09-01 09:20:36 +00:00
version = "0.5.0-beta.3"
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
[dependencies]
2023-06-12 14:19:30 +00:00
chrono = { version = "0.4.26", features = ["clock"], default-features = false }
serde = { version = "1.0.164", features = ["derive"] }
async-trait = "0.1.68"
2023-06-12 14:19:30 +00:00
url = { version = "2.4.0", features = ["serde"] }
serde_json = { version = "1.0.96", features = ["preserve_order"] }
anyhow = "1.0.71"
reqwest = { version = "0.11.18", features = ["json", "stream"] }
reqwest-middleware = "0.2.2"
2022-11-14 14:26:38 +00:00
tracing = "0.1.37"
2023-06-12 14:19:30 +00:00
base64 = "0.21.2"
openssl = "0.10.54"
once_cell = "1.18.0"
http = "0.2.9"
2022-09-29 21:36:50 +00:00
sha2 = "0.10.6"
thiserror = "1.0.40"
derive_builder = "0.12.0"
2022-09-29 21:36:50 +00:00
itertools = "0.10.5"
dyn-clone = "1.0.11"
2022-11-14 12:04:36 +00:00
enum_delegate = "0.2.0"
2022-11-23 11:25:08 +00:00
httpdate = "1.0.2"
http-signature-normalization-reqwest = { version = "0.8.0", default-features = false, features = [
"sha-2",
"middleware",
] }
http-signature-normalization = "0.7.0"
bytes = "1.4.0"
2023-06-12 14:19:30 +00:00
futures-core = { version = "0.3.28", default-features = false }
pin-project-lite = "0.2.9"
activitystreams-kinds = "0.3.0"
regex = { version = "1.8.4", default-features = false, features = ["std", "unicode-case"] }
tokio = { version = "1.21.2", features = [
"sync",
"rt",
"rt-multi-thread",
"time",
] }
# Actix-web
actix-web = { version = "4.3.1", default-features = false, optional = true }
# Axum
axum = { version = "0.6.18", features = [
"json",
"headers",
], default-features = false, optional = true }
tower = { version = "0.4.13", optional = true }
hyper = { version = "0.14", optional = true }
futures = "0.3.28"
moka = { version = "0.11.2", features = ["future"] }
[features]
2023-03-02 14:18:06 +00:00
default = ["actix-web", "axum"]
actix-web = ["dep:actix-web"]
axum = ["dep:axum", "dep:tower", "dep:hyper"]
2022-06-02 11:17:12 +00:00
[dev-dependencies]
rand = "0.8.5"
env_logger = "0.10.0"
tower-http = { version = "0.4.0", features = ["map-request-body", "util"] }
axum = { version = "0.6.18", features = [
"http1",
"tokio",
"query",
], default-features = false }
axum-macros = "0.3.7"
tokio = { version = "1.21.2", 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"