2022-11-17 15:23:01 +00:00
|
|
|
[workspace.package]
|
2024-08-27 20:32:08 +00:00
|
|
|
version = "0.19.6-beta.7"
|
2022-02-14 15:34:54 +00:00
|
|
|
edition = "2021"
|
2021-07-24 09:55:56 +00:00
|
|
|
description = "A link aggregator for the fediverse"
|
|
|
|
license = "AGPL-3.0"
|
2021-10-19 17:03:43 +00:00
|
|
|
homepage = "https://join-lemmy.org/"
|
2021-07-24 09:55:56 +00:00
|
|
|
documentation = "https://join-lemmy.org/docs/en/index.html"
|
2022-11-24 16:38:00 +00:00
|
|
|
repository = "https://github.com/LemmyNet/lemmy"
|
2022-11-17 15:23:01 +00:00
|
|
|
|
|
|
|
[package]
|
|
|
|
name = "lemmy_server"
|
|
|
|
version.workspace = true
|
|
|
|
edition.workspace = true
|
|
|
|
description.workspace = true
|
|
|
|
license.workspace = true
|
|
|
|
homepage.workspace = true
|
|
|
|
documentation.workspace = true
|
2022-11-24 16:38:00 +00:00
|
|
|
repository.workspace = true
|
2024-01-10 14:07:09 +00:00
|
|
|
publish = false
|
2019-04-06 05:29:20 +00:00
|
|
|
|
2021-02-25 19:43:39 +00:00
|
|
|
[lib]
|
|
|
|
doctest = false
|
|
|
|
|
2023-11-21 13:51:22 +00:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2024-11-06 09:24:49 +00:00
|
|
|
# See https://github.com/johnthagen/min-sized-rust for additional optimizations
|
2022-10-25 15:10:07 +00:00
|
|
|
[profile.release]
|
|
|
|
debug = 0
|
2024-10-29 15:01:58 +00:00
|
|
|
lto = "fat"
|
|
|
|
opt-level = 3 # Optimize for speed, not size.
|
|
|
|
codegen-units = 1 # Reduce parallel code generation.
|
2022-10-25 15:10:07 +00:00
|
|
|
|
2023-07-13 18:50:17 +00:00
|
|
|
# This profile significantly speeds up build time. If debug info is needed you can comment the line
|
|
|
|
# out temporarily, but make sure to leave this in the main branch.
|
|
|
|
[profile.dev]
|
|
|
|
debug = 0
|
|
|
|
|
2022-02-04 17:31:38 +00:00
|
|
|
[features]
|
2023-07-04 11:11:47 +00:00
|
|
|
json-log = ["tracing-subscriber/json"]
|
2022-02-04 17:31:38 +00:00
|
|
|
default = []
|
|
|
|
|
2020-07-10 18:15:41 +00:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2023-07-14 08:45:18 +00:00
|
|
|
"crates/api",
|
|
|
|
"crates/api_crud",
|
|
|
|
"crates/api_common",
|
|
|
|
"crates/apub",
|
|
|
|
"crates/utils",
|
2024-01-24 15:22:33 +00:00
|
|
|
"crates/db_perf",
|
2023-07-14 08:45:18 +00:00
|
|
|
"crates/db_schema",
|
|
|
|
"crates/db_views",
|
|
|
|
"crates/db_views_actor",
|
|
|
|
"crates/db_views_actor",
|
|
|
|
"crates/routes",
|
2023-09-09 16:25:03 +00:00
|
|
|
"crates/federate",
|
2020-07-10 18:15:41 +00:00
|
|
|
]
|
|
|
|
|
2023-11-21 13:51:22 +00:00
|
|
|
[workspace.lints.clippy]
|
|
|
|
cast_lossless = "deny"
|
2024-05-23 15:11:25 +00:00
|
|
|
complexity = { level = "deny", priority = -1 }
|
|
|
|
correctness = { level = "deny", priority = -1 }
|
2023-11-21 13:51:22 +00:00
|
|
|
dbg_macro = "deny"
|
|
|
|
explicit_into_iter_loop = "deny"
|
|
|
|
explicit_iter_loop = "deny"
|
|
|
|
get_first = "deny"
|
|
|
|
implicit_clone = "deny"
|
|
|
|
indexing_slicing = "deny"
|
|
|
|
inefficient_to_string = "deny"
|
|
|
|
items-after-statements = "deny"
|
|
|
|
manual_string_new = "deny"
|
|
|
|
needless_collect = "deny"
|
2024-05-23 15:11:25 +00:00
|
|
|
perf = { level = "deny", priority = -1 }
|
2023-11-21 13:51:22 +00:00
|
|
|
redundant_closure_for_method_calls = "deny"
|
2024-05-23 15:11:25 +00:00
|
|
|
style = { level = "deny", priority = -1 }
|
|
|
|
suspicious = { level = "deny", priority = -1 }
|
2023-11-21 13:51:22 +00:00
|
|
|
uninlined_format_args = "allow"
|
|
|
|
unused_self = "deny"
|
|
|
|
unwrap_used = "deny"
|
2024-08-01 00:28:41 +00:00
|
|
|
unimplemented = "deny"
|
2024-11-07 10:49:05 +00:00
|
|
|
unused_async = "deny"
|
2024-11-15 14:13:43 +00:00
|
|
|
map_err_ignore = "deny"
|
2024-11-15 13:18:52 +00:00
|
|
|
expect_used = "deny"
|
2023-11-21 13:51:22 +00:00
|
|
|
|
2022-11-17 15:23:01 +00:00
|
|
|
[workspace.dependencies]
|
2024-08-27 20:32:08 +00:00
|
|
|
lemmy_api = { version = "=0.19.6-beta.7", path = "./crates/api" }
|
|
|
|
lemmy_api_crud = { version = "=0.19.6-beta.7", path = "./crates/api_crud" }
|
|
|
|
lemmy_apub = { version = "=0.19.6-beta.7", path = "./crates/apub" }
|
|
|
|
lemmy_utils = { version = "=0.19.6-beta.7", path = "./crates/utils", default-features = false }
|
|
|
|
lemmy_db_schema = { version = "=0.19.6-beta.7", path = "./crates/db_schema" }
|
|
|
|
lemmy_api_common = { version = "=0.19.6-beta.7", path = "./crates/api_common" }
|
|
|
|
lemmy_routes = { version = "=0.19.6-beta.7", path = "./crates/routes" }
|
|
|
|
lemmy_db_views = { version = "=0.19.6-beta.7", path = "./crates/db_views" }
|
|
|
|
lemmy_db_views_actor = { version = "=0.19.6-beta.7", path = "./crates/db_views_actor" }
|
|
|
|
lemmy_db_views_moderator = { version = "=0.19.6-beta.7", path = "./crates/db_views_moderator" }
|
|
|
|
lemmy_federate = { version = "=0.19.6-beta.7", path = "./crates/federate" }
|
2024-11-22 15:49:56 +00:00
|
|
|
activitypub_federation = { version = "0.6.1", default-features = false, features = [
|
2023-07-14 08:45:18 +00:00
|
|
|
"actix-web",
|
|
|
|
] }
|
2024-11-18 17:23:02 +00:00
|
|
|
diesel = "2.2.4"
|
|
|
|
diesel_migrations = "2.2.0"
|
|
|
|
diesel-async = "0.5.1"
|
|
|
|
serde = { version = "1.0.215", features = ["derive"] }
|
2024-08-01 21:04:28 +00:00
|
|
|
serde_with = "3.9.0"
|
2024-09-12 09:49:09 +00:00
|
|
|
actix-web = { version = "4.9.0", default-features = false, features = [
|
2023-07-14 08:45:18 +00:00
|
|
|
"macros",
|
2024-05-29 00:47:21 +00:00
|
|
|
"rustls-0_23",
|
2023-07-14 08:45:18 +00:00
|
|
|
"compress-brotli",
|
|
|
|
"compress-gzip",
|
|
|
|
"compress-zstd",
|
2023-10-09 10:46:12 +00:00
|
|
|
"cookies",
|
2023-07-14 08:45:18 +00:00
|
|
|
] }
|
2023-10-25 09:32:21 +00:00
|
|
|
tracing = "0.1.40"
|
2024-09-10 17:36:03 +00:00
|
|
|
tracing-actix-web = { version = "0.7.10", default-features = false }
|
2023-11-24 09:29:41 +00:00
|
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
2024-11-18 17:23:02 +00:00
|
|
|
url = { version = "2.5.3", features = ["serde"] }
|
2024-09-12 09:49:09 +00:00
|
|
|
reqwest = { version = "0.12.7", default-features = false, features = [
|
2024-07-18 12:40:43 +00:00
|
|
|
"json",
|
|
|
|
"blocking",
|
|
|
|
"gzip",
|
|
|
|
"rustls-tls",
|
|
|
|
] }
|
2024-09-12 09:49:09 +00:00
|
|
|
reqwest-middleware = "0.3.3"
|
|
|
|
reqwest-tracing = "0.5.3"
|
2023-07-10 13:00:55 +00:00
|
|
|
clokwerk = "0.4.0"
|
2023-06-12 09:55:47 +00:00
|
|
|
doku = { version = "0.21.1", features = ["url-2"] }
|
2024-04-19 20:50:27 +00:00
|
|
|
bcrypt = "0.15.1"
|
2024-11-15 10:21:08 +00:00
|
|
|
chrono = { version = "0.4.38", features = [
|
|
|
|
"serde",
|
|
|
|
"now",
|
|
|
|
], default-features = false }
|
2024-11-18 17:23:02 +00:00
|
|
|
serde_json = { version = "1.0.132", features = ["preserve_order"] }
|
2024-05-01 02:30:19 +00:00
|
|
|
base64 = "0.22.1"
|
2024-11-25 23:20:45 +00:00
|
|
|
uuid = { version = "1.11.0", features = ["serde"] }
|
2024-11-18 17:23:02 +00:00
|
|
|
async-trait = "0.1.83"
|
2022-11-17 15:23:01 +00:00
|
|
|
captcha = "0.0.9"
|
2024-11-18 17:23:02 +00:00
|
|
|
anyhow = { version = "1.0.93", features = [
|
2023-07-14 08:45:18 +00:00
|
|
|
"backtrace",
|
|
|
|
] } # backtrace is on by default on nightly, but not stable rust
|
2024-01-25 09:24:07 +00:00
|
|
|
diesel_ltree = "0.3.1"
|
2024-11-18 17:23:02 +00:00
|
|
|
serial_test = "3.2.0"
|
|
|
|
tokio = { version = "1.41.1", features = ["full"] }
|
|
|
|
regex = "1.11.1"
|
2024-04-19 20:50:27 +00:00
|
|
|
diesel-derive-newtype = "2.1.2"
|
2023-07-14 08:45:18 +00:00
|
|
|
diesel-derive-enum = { version = "2.1.0", features = ["postgres"] }
|
2024-07-23 15:05:19 +00:00
|
|
|
strum = { version = "0.26.3", features = ["derive"] }
|
2024-05-23 14:55:20 +00:00
|
|
|
itertools = "0.13.0"
|
2024-11-18 17:23:02 +00:00
|
|
|
futures = "0.3.31"
|
2024-09-12 09:49:09 +00:00
|
|
|
http = "1.1"
|
2023-07-10 13:00:55 +00:00
|
|
|
rosetta-i18n = "0.1.3"
|
2024-11-06 14:50:13 +00:00
|
|
|
ts-rs = { version = "10.0.0", features = [
|
2024-01-29 14:22:53 +00:00
|
|
|
"serde-compat",
|
|
|
|
"chrono-impl",
|
|
|
|
"no-serde-warnings",
|
2024-11-06 14:50:13 +00:00
|
|
|
"url-impl",
|
2024-01-29 14:22:53 +00:00
|
|
|
] }
|
2024-11-18 17:23:02 +00:00
|
|
|
rustls = { version = "0.23.16", features = ["ring"] }
|
|
|
|
futures-util = "0.3.31"
|
|
|
|
tokio-postgres = "0.7.12"
|
2024-05-03 20:06:14 +00:00
|
|
|
tokio-postgres-rustls = "0.12.0"
|
2024-01-25 14:22:11 +00:00
|
|
|
urlencoding = "2.1.3"
|
2023-10-25 09:32:21 +00:00
|
|
|
enum-map = "2.7"
|
2024-08-01 21:04:28 +00:00
|
|
|
moka = { version = "0.12.8", features = ["future"] }
|
2024-01-24 15:50:11 +00:00
|
|
|
i-love-jesus = { version = "0.1.0" }
|
2024-11-18 17:23:02 +00:00
|
|
|
clap = { version = "4.5.21", features = ["derive", "env"] }
|
|
|
|
pretty_assertions = "1.4.1"
|
2024-09-01 16:47:16 +00:00
|
|
|
derive-new = "0.7.0"
|
2024-11-11 10:34:10 +00:00
|
|
|
diesel-bind-if-some = "0.1.0"
|
|
|
|
tuplex = "0.1.2"
|
2022-11-17 15:23:01 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
lemmy_api = { workspace = true }
|
|
|
|
lemmy_api_crud = { workspace = true }
|
|
|
|
lemmy_apub = { workspace = true }
|
|
|
|
lemmy_utils = { workspace = true }
|
|
|
|
lemmy_db_schema = { workspace = true }
|
|
|
|
lemmy_api_common = { workspace = true }
|
|
|
|
lemmy_routes = { workspace = true }
|
2024-04-04 14:14:59 +00:00
|
|
|
lemmy_federate = { workspace = true }
|
2022-11-17 15:23:01 +00:00
|
|
|
activitypub_federation = { workspace = true }
|
|
|
|
diesel = { workspace = true }
|
|
|
|
diesel-async = { workspace = true }
|
|
|
|
actix-web = { workspace = true }
|
|
|
|
tracing = { workspace = true }
|
|
|
|
tracing-actix-web = { workspace = true }
|
|
|
|
tracing-subscriber = { workspace = true }
|
|
|
|
url = { workspace = true }
|
|
|
|
reqwest = { workspace = true }
|
|
|
|
reqwest-middleware = { workspace = true }
|
|
|
|
reqwest-tracing = { workspace = true }
|
|
|
|
clokwerk = { workspace = true }
|
2022-11-28 14:29:33 +00:00
|
|
|
serde_json = { workspace = true }
|
2024-07-22 02:33:42 +00:00
|
|
|
rustls = { workspace = true }
|
2023-01-20 17:46:49 +00:00
|
|
|
tokio.workspace = true
|
2024-05-23 14:55:20 +00:00
|
|
|
actix-cors = "0.7.0"
|
2023-06-26 08:25:38 +00:00
|
|
|
futures-util = { workspace = true }
|
2023-07-05 11:25:19 +00:00
|
|
|
chrono = { workspace = true }
|
2024-05-23 14:55:20 +00:00
|
|
|
prometheus = { version = "0.13.4", features = ["process"] }
|
2023-09-21 10:42:28 +00:00
|
|
|
serial_test = { workspace = true }
|
2024-01-24 15:22:33 +00:00
|
|
|
clap = { workspace = true }
|
2024-10-05 16:55:45 +00:00
|
|
|
actix-web-prom = "0.9.0"
|
2024-01-04 09:47:18 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
pretty_assertions = { workspace = true }
|