aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-07-26 12:39:20 -0700
committerclarkzjw <[email protected]>2023-07-26 12:39:20 -0700
commit04872ae50ddd77e3c4184abb2ab5db7808b7479b (patch)
tree06ad55f227173619e60be18f08268c8e0f648443
parentaf2f09ea4cbb97d3ee91e30bb58e85508989d63a (diff)
downloadphoto-fedi.tar.gz
add cargo.tomlfedi
-rw-r--r--fedi/Cargo.toml87
1 files changed, 87 insertions, 0 deletions
diff --git a/fedi/Cargo.toml b/fedi/Cargo.toml
new file mode 100644
index 0000000..9b14f29
--- /dev/null
+++ b/fedi/Cargo.toml
@@ -0,0 +1,87 @@
1[package]
2name = "activitypub_federation"
3version = "0.4.6"
4edition = "2021"
5description = "High-level Activitypub framework"
6keywords = ["activitypub", "activitystreams", "federation", "fediverse"]
7license = "AGPL-3.0"
8repository = "https://github.com/LemmyNet/activitypub-federation-rust"
9documentation = "https://docs.rs/activitypub_federation/"
10
11[dependencies]
12chrono = { version = "0.4.26", features = ["clock"], default-features = false }
13serde = { version = "1.0.164", features = ["derive"] }
14async-trait = "0.1.68"
15url = { version = "2.4.0", features = ["serde"] }
16serde_json = { version = "1.0.96", features = ["preserve_order"] }
17anyhow = "1.0.71"
18reqwest = { version = "0.11.18", features = ["json", "stream"] }
19reqwest-middleware = "0.2.2"
20tracing = "0.1.37"
21base64 = "0.21.2"
22openssl = "0.10.54"
23once_cell = "1.18.0"
24http = "0.2.9"
25sha2 = "0.10.6"
26thiserror = "1.0.40"
27derive_builder = "0.12.0"
28itertools = "0.10.5"
29dyn-clone = "1.0.11"
30enum_delegate = "0.2.0"
31httpdate = "1.0.2"
32http-signature-normalization-reqwest = { version = "0.8.0", default-features = false, features = [
33 "sha-2",
34 "middleware",
35] }
36http-signature-normalization = "0.7.0"
37bytes = "1.4.0"
38futures-core = { version = "0.3.28", default-features = false }
39pin-project-lite = "0.2.9"
40activitystreams-kinds = "0.3.0"
41regex = { version = "1.8.4", default-features = false, features = ["std", "unicode-case"] }
42tokio = { version = "1.21.2", features = [
43 "sync",
44 "rt",
45 "rt-multi-thread",
46 "time",
47] }
48
49# Actix-web
50actix-web = { version = "4.3.1", default-features = false, optional = true }
51
52# Axum
53axum = { version = "0.6.18", features = [
54 "json",
55 "headers",
56], default-features = false, optional = true }
57tower = { version = "0.4.13", optional = true }
58hyper = { version = "0.14", optional = true }
59
60[features]
61default = ["actix-web", "axum"]
62actix-web = ["dep:actix-web"]
63axum = ["dep:axum", "dep:tower", "dep:hyper"]
64
65[dev-dependencies]
66rand = "0.8.5"
67env_logger = "0.10.0"
68tower-http = { version = "0.4.0", features = ["map-request-body", "util"] }
69axum = { version = "0.6.18", features = [
70 "http1",
71 "tokio",
72 "query",
73], default-features = false }
74axum-macros = "0.3.7"
75tokio = { version = "1.21.2", features = ["full"] }
76
77[profile.dev]
78strip = "symbols"
79debug = 0
80
81[[example]]
82name = "local_federation"
83path = "examples/local_federation/main.rs"
84
85[[example]]
86name = "live_federation"
87path = "examples/live_federation/main.rs"
Powered by cgit v1.2.3 (git 2.41.0)