]> Untitled Git - lemmy.git/blob - crates/api_common/Cargo.toml
8a23a4cb2475425b59c54ad26e2b53b8c8ea658a
[lemmy.git] / crates / api_common / Cargo.toml
1 [package]
2 name = "lemmy_api_common"
3 version.workspace = true
4 edition.workspace = true
5 description.workspace = true
6 license.workspace = true
7 homepage.workspace = true
8 documentation.workspace = true
9 repository.workspace = true
10
11 [lib]
12 name = "lemmy_api_common"
13 path = "src/lib.rs"
14 doctest = false
15
16 [features]
17 full = [
18   "tracing",
19   "rosetta-i18n",
20   "chrono",
21   "lemmy_utils",
22   "lemmy_db_views/full",
23   "lemmy_db_views_actor/full",
24   "lemmy_db_views_moderator/full",
25   "activitypub_federation",
26   "percent-encoding",
27   "encoding",
28   "reqwest-middleware",
29   "webpage",
30   "ts-rs",
31   "tokio",
32   "uuid",
33   "reqwest",
34   "actix-web",
35   "futures",
36   "once_cell",
37 ]
38
39 [dependencies]
40 lemmy_db_views = { workspace = true }
41 lemmy_db_views_moderator = { workspace = true }
42 lemmy_db_views_actor = { workspace = true }
43 lemmy_db_schema = { workspace = true }
44 lemmy_utils = { workspace = true, optional = true }
45 activitypub_federation = { workspace = true, optional = true }
46 serde = { workspace = true }
47 serde_with = { workspace = true }
48 url = { workspace = true }
49 chrono = { workspace = true, optional = true }
50 tracing = { workspace = true, optional = true }
51 reqwest-middleware = { workspace = true, optional = true }
52 regex = { workspace = true }
53 rosetta-i18n = { workspace = true, optional = true }
54 percent-encoding = { workspace = true, optional = true }
55 webpage = { version = "1.6", default-features = false, features = [
56   "serde",
57 ], optional = true }
58 encoding = { version = "0.2.33", optional = true }
59 anyhow = { workspace = true }
60 futures = { workspace = true, optional = true }
61 uuid = { workspace = true, optional = true }
62 tokio = { workspace = true, optional = true }
63 reqwest = { workspace = true, optional = true }
64 ts-rs = { workspace = true, optional = true }
65 once_cell = { workspace = true, optional = true }
66 actix-web = { workspace = true, optional = true }
67 # necessary for wasmt compilation
68 getrandom = { version = "0.2.10", features = ["js"] }