activitypub-federation-rust/Cargo.toml

94 lines
2.7 KiB
TOML
Raw Normal View History

2022-06-02 11:17:12 +00:00
[package]
name = "activitypub_federation"
2024-03-08 14:43:43 +00:00
version = "0.5.2"
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"]
axum = ["dep:axum", "dep:tower", "dep:hyper", "dep:http-body-util"]
diesel = ["dep:diesel"]
2023-12-01 14:40:12 +00:00
2022-06-02 11:17:12 +00:00
[dependencies]
2024-03-04 15:23:46 +00:00
chrono = { version = "0.4.34", features = ["clock"], default-features = false }
serde = { version = "1.0.197", features = ["derive"] }
2024-01-02 10:33:58 +00:00
async-trait = "0.1.77"
2023-12-01 14:40:12 +00:00
url = { version = "2.5.0", features = ["serde"] }
2024-03-04 15:23:46 +00:00
serde_json = { version = "1.0.114", features = ["preserve_order"] }
reqwest = { version = "0.11.24", features = ["json", "stream"] }
2023-12-01 14:40:12 +00:00
reqwest-middleware = "0.2.4"
2023-10-24 09:34:42 +00:00
tracing = "0.1.40"
2024-03-04 15:23:46 +00:00
base64 = "0.21.7"
openssl = "0.10.64"
2023-12-12 10:32:22 +00:00
once_cell = "1.19.0"
2023-12-01 14:40:12 +00:00
http = "0.2.11"
2023-10-24 09:34:42 +00:00
sha2 = "0.10.8"
2024-03-04 15:23:46 +00:00
thiserror = "1.0.57"
derive_builder = "0.12.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 = [
"sha-2",
"middleware",
2023-12-01 14:40:12 +00:00
"default-spawner",
] }
http-signature-normalization = "0.7.0"
2023-10-24 09:34:42 +00:00
bytes = "1.5.0"
2024-01-02 10:33:58 +00:00
futures-core = { version = "0.3.30", default-features = false }
2023-10-24 09:34:42 +00:00
pin-project-lite = "0.2.13"
activitystreams-kinds = "0.3.0"
2024-03-04 15:23:46 +00:00
regex = { version = "1.10.3", default-features = false, features = ["std", "unicode-case"] }
tokio = { version = "1.36.0", features = [
"sync",
"rt",
"rt-multi-thread",
"time",
] }
diesel = { version = "2.1.4", features = ["postgres"], default-features = false, optional = true }
2024-01-02 10:33:58 +00:00
futures = "0.3.30"
2024-03-04 15:23:46 +00:00
moka = { version = "0.12.5", features = ["future"] }
# Actix-web
2024-03-04 15:23:46 +00:00
actix-web = { version = "4.5.1", default-features = false, optional = true }
# Axum
2023-10-24 09:34:42 +00:00
axum = { version = "0.6.20", features = [
"json",
"headers",
], default-features = false, optional = true }
tower = { version = "0.4.13", optional = true }
hyper = { version = "0.14", optional = true }
2023-12-01 14:40:12 +00:00
http-body-util = {version = "0.1.0", optional = true }
2022-06-02 11:17:12 +00:00
[dev-dependencies]
2024-03-04 15:23:46 +00:00
anyhow = "1.0.80"
2022-06-02 11:17:12 +00:00
rand = "0.8.5"
2024-03-04 15:23:46 +00:00
env_logger = "0.10.2"
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 = [
"http1",
"tokio",
"query",
], default-features = false }
2023-10-24 09:34:42 +00:00
axum-macros = "0.3.8"
2024-03-04 15:23:46 +00:00
tokio = { version = "1.36.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"