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