2022-11-17 10:23:01 -05:00
|
|
|
[workspace.package]
|
2023-12-15 06:53:26 -05:00
|
|
|
version = "0.19.0"
|
2022-02-14 10:34:54 -05:00
|
|
|
edition = "2021"
|
2021-07-24 05:55:56 -04:00
|
|
|
description = "A link aggregator for the fediverse"
|
|
|
|
license = "AGPL-3.0"
|
2021-10-19 13:03:43 -04:00
|
|
|
homepage = "https://join-lemmy.org/"
|
2021-07-24 05:55:56 -04:00
|
|
|
documentation = "https://join-lemmy.org/docs/en/index.html"
|
2022-11-24 11:38:00 -05:00
|
|
|
repository = "https://github.com/LemmyNet/lemmy"
|
2022-11-17 10:23:01 -05: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 11:38:00 -05:00
|
|
|
repository.workspace = true
|
2019-04-06 01:29:20 -04:00
|
|
|
|
2021-02-25 14:43:39 -05:00
|
|
|
[lib]
|
|
|
|
doctest = false
|
|
|
|
|
2023-11-21 08:51:22 -05:00
|
|
|
[lints]
|
|
|
|
workspace = true
|
|
|
|
|
2022-10-25 11:10:07 -04:00
|
|
|
[profile.release]
|
|
|
|
debug = 0
|
|
|
|
lto = "thin"
|
2023-10-11 11:57:05 -04:00
|
|
|
strip = true # Automatically strip symbols from the binary.
|
|
|
|
opt-level = "z" # Optimize for size.
|
2022-10-25 11:10:07 -04:00
|
|
|
|
2023-07-13 14:50:17 -04: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 12:31:38 -05:00
|
|
|
[features]
|
2023-01-20 12:46:49 -05:00
|
|
|
embed-pictrs = ["pict-rs"]
|
2023-07-14 04:45:18 -04:00
|
|
|
console = [
|
|
|
|
"console-subscriber",
|
|
|
|
"opentelemetry",
|
|
|
|
"opentelemetry-otlp",
|
|
|
|
"tracing-opentelemetry",
|
|
|
|
"reqwest-tracing/opentelemetry_0_16",
|
|
|
|
]
|
2023-07-04 07:11:47 -04:00
|
|
|
json-log = ["tracing-subscriber/json"]
|
2022-02-04 12:31:38 -05:00
|
|
|
default = []
|
|
|
|
|
2020-07-10 14:15:41 -04:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2023-07-14 04:45:18 -04:00
|
|
|
"crates/api",
|
|
|
|
"crates/api_crud",
|
|
|
|
"crates/api_common",
|
|
|
|
"crates/apub",
|
|
|
|
"crates/utils",
|
|
|
|
"crates/db_schema",
|
|
|
|
"crates/db_views",
|
|
|
|
"crates/db_views_actor",
|
|
|
|
"crates/db_views_actor",
|
|
|
|
"crates/routes",
|
2023-09-09 12:25:03 -04:00
|
|
|
"crates/federate",
|
2020-07-10 14:15:41 -04:00
|
|
|
]
|
|
|
|
|
2023-11-21 08:51:22 -05:00
|
|
|
[workspace.lints.clippy]
|
|
|
|
cast_lossless = "deny"
|
|
|
|
complexity = "deny"
|
|
|
|
correctness = "deny"
|
|
|
|
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"
|
|
|
|
perf = "deny"
|
|
|
|
redundant_closure_for_method_calls = "deny"
|
|
|
|
style = "deny"
|
|
|
|
suspicious = "deny"
|
|
|
|
uninlined_format_args = "allow"
|
|
|
|
unused_self = "deny"
|
|
|
|
unwrap_used = "deny"
|
|
|
|
|
2022-11-17 10:23:01 -05:00
|
|
|
[workspace.dependencies]
|
2023-12-15 06:53:26 -05:00
|
|
|
lemmy_api = { version = "=0.19.0", path = "./crates/api" }
|
|
|
|
lemmy_api_crud = { version = "=0.19.0", path = "./crates/api_crud" }
|
|
|
|
lemmy_apub = { version = "=0.19.0", path = "./crates/apub" }
|
|
|
|
lemmy_utils = { version = "=0.19.0", path = "./crates/utils" }
|
|
|
|
lemmy_db_schema = { version = "=0.19.0", path = "./crates/db_schema" }
|
|
|
|
lemmy_api_common = { version = "=0.19.0", path = "./crates/api_common" }
|
|
|
|
lemmy_routes = { version = "=0.19.0", path = "./crates/routes" }
|
|
|
|
lemmy_db_views = { version = "=0.19.0", path = "./crates/db_views" }
|
|
|
|
lemmy_db_views_actor = { version = "=0.19.0", path = "./crates/db_views_actor" }
|
|
|
|
lemmy_db_views_moderator = { version = "=0.19.0", path = "./crates/db_views_moderator" }
|
2023-12-12 08:56:33 -05:00
|
|
|
activitypub_federation = { version = "0.5.0-beta.6", default-features = false, features = [
|
2023-07-14 04:45:18 -04:00
|
|
|
"actix-web",
|
|
|
|
] }
|
2023-11-24 04:29:41 -05:00
|
|
|
diesel = "2.1.4"
|
2023-06-07 06:54:40 -04:00
|
|
|
diesel_migrations = "2.1.0"
|
2023-11-27 04:31:19 -05:00
|
|
|
diesel-async = "0.4.1"
|
2023-11-24 04:29:41 -05:00
|
|
|
serde = { version = "1.0.193", features = ["derive"] }
|
2023-10-25 05:32:21 -04:00
|
|
|
serde_with = "3.4.0"
|
|
|
|
actix-web = { version = "4.4.0", default-features = false, features = [
|
2023-07-14 04:45:18 -04:00
|
|
|
"macros",
|
|
|
|
"rustls",
|
|
|
|
"compress-brotli",
|
|
|
|
"compress-gzip",
|
|
|
|
"compress-zstd",
|
2023-10-09 06:46:12 -04:00
|
|
|
"cookies",
|
2023-07-14 04:45:18 -04:00
|
|
|
] }
|
2023-10-25 05:32:21 -04:00
|
|
|
tracing = "0.1.40"
|
2023-11-24 04:29:41 -05:00
|
|
|
tracing-actix-web = { version = "0.7.9", default-features = false }
|
2021-11-23 07:16:47 -05:00
|
|
|
tracing-error = "0.2.0"
|
2023-12-12 08:56:33 -05:00
|
|
|
tracing-log = "0.2.0"
|
2023-11-24 04:29:41 -05:00
|
|
|
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
|
|
|
|
url = { version = "2.5.0", features = ["serde"] }
|
2023-10-25 05:32:21 -04:00
|
|
|
reqwest = { version = "0.11.22", features = ["json", "blocking", "gzip"] }
|
|
|
|
reqwest-middleware = "0.2.4"
|
|
|
|
reqwest-tracing = "0.4.6"
|
2023-07-10 09:00:55 -04:00
|
|
|
clokwerk = "0.4.0"
|
2023-06-12 05:55:47 -04:00
|
|
|
doku = { version = "0.21.1", features = ["url-2"] }
|
2023-07-10 09:00:55 -04:00
|
|
|
bcrypt = "0.15.0"
|
2023-10-25 05:32:21 -04:00
|
|
|
chrono = { version = "0.4.31", features = ["serde"], default-features = false }
|
2023-11-24 04:29:41 -05:00
|
|
|
serde_json = { version = "1.0.108", features = ["preserve_order"] }
|
2023-10-25 05:32:21 -04:00
|
|
|
base64 = "0.21.5"
|
2023-11-24 04:29:41 -05:00
|
|
|
uuid = { version = "1.6.1", features = ["serde", "v4"] }
|
2023-10-25 05:32:21 -04:00
|
|
|
async-trait = "0.1.74"
|
2022-11-17 10:23:01 -05:00
|
|
|
captcha = "0.0.9"
|
2023-10-25 05:32:21 -04:00
|
|
|
anyhow = { version = "1.0.75", features = [
|
2023-07-14 04:45:18 -04:00
|
|
|
"backtrace",
|
|
|
|
] } # backtrace is on by default on nightly, but not stable rust
|
2022-11-17 10:23:01 -05:00
|
|
|
diesel_ltree = "0.3.0"
|
2023-12-12 08:56:33 -05:00
|
|
|
typed-builder = "0.18.0"
|
2023-07-10 09:00:55 -04:00
|
|
|
serial_test = "2.0.0"
|
2023-12-12 08:56:33 -05:00
|
|
|
tokio = { version = "1.35.0", features = ["full"] }
|
2023-10-25 05:32:21 -04:00
|
|
|
regex = "1.10.2"
|
2023-12-12 08:56:33 -05:00
|
|
|
once_cell = "1.19.0"
|
2023-06-15 05:37:05 -04:00
|
|
|
diesel-derive-newtype = "2.1.0"
|
2023-07-14 04:45:18 -04:00
|
|
|
diesel-derive-enum = { version = "2.1.0", features = ["postgres"] }
|
2023-07-10 09:00:55 -04:00
|
|
|
strum = "0.25.0"
|
2023-10-25 05:32:21 -04:00
|
|
|
strum_macros = "0.25.3"
|
2023-12-12 08:56:33 -05:00
|
|
|
itertools = "0.12.0"
|
2023-11-24 04:29:41 -05:00
|
|
|
futures = "0.3.29"
|
|
|
|
http = "0.2.11"
|
|
|
|
percent-encoding = "2.3.1"
|
2023-07-10 09:00:55 -04:00
|
|
|
rosetta-i18n = "0.1.3"
|
|
|
|
opentelemetry = { version = "0.19.0", features = ["rt-tokio"] }
|
|
|
|
tracing-opentelemetry = { version = "0.19.0" }
|
2023-09-06 13:04:24 -04:00
|
|
|
ts-rs = { version = "7.0.0", features = ["serde-compat", "chrono-impl"] }
|
2023-12-12 08:56:33 -05:00
|
|
|
rustls = { version = "0.21.10", features = ["dangerous_configuration"] }
|
2023-11-24 04:29:41 -05:00
|
|
|
futures-util = "0.3.29"
|
2023-10-25 05:32:21 -04:00
|
|
|
tokio-postgres = "0.7.10"
|
2023-06-26 04:25:38 -04:00
|
|
|
tokio-postgres-rustls = "0.10.0"
|
2023-10-25 05:32:21 -04:00
|
|
|
enum-map = "2.7"
|
2023-12-12 08:56:33 -05:00
|
|
|
moka = { version = "0.12.1", features = ["future"] }
|
2022-11-17 10:23:01 -05: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 }
|
2023-12-15 06:53:26 -05:00
|
|
|
lemmy_federate = { version = "0.19.0", path = "crates/federate" }
|
2022-11-17 10:23:01 -05: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-error = { workspace = true }
|
|
|
|
tracing-log = { 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 09:29:33 -05:00
|
|
|
serde_json = { workspace = true }
|
2022-11-17 10:23:01 -05:00
|
|
|
tracing-opentelemetry = { workspace = true, optional = true }
|
|
|
|
opentelemetry = { workspace = true, optional = true }
|
2023-07-10 09:00:55 -04:00
|
|
|
console-subscriber = { version = "0.1.10", optional = true }
|
|
|
|
opentelemetry-otlp = { version = "0.12.0", optional = true }
|
2023-12-13 07:05:13 -05:00
|
|
|
pict-rs = { version = "0.5.0-rc.2", optional = true }
|
2023-01-20 12:46:49 -05:00
|
|
|
tokio.workspace = true
|
2023-12-12 08:56:33 -05:00
|
|
|
actix-cors = "0.6.5"
|
2023-06-26 04:25:38 -04:00
|
|
|
futures-util = { workspace = true }
|
2023-07-05 07:25:19 -04:00
|
|
|
chrono = { workspace = true }
|
2023-10-25 06:54:58 -04:00
|
|
|
prometheus = { version = "0.13.3", features = ["process"] }
|
2023-09-21 06:42:28 -04:00
|
|
|
serial_test = { workspace = true }
|
2023-12-12 08:56:33 -05:00
|
|
|
clap = { version = "4.4.11", features = ["derive"] }
|
2023-12-04 09:53:53 -05:00
|
|
|
actix-web-prom = "0.7.0"
|