mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-02-03 07:41:39 +00:00
52047459bb
* Renaming person_mention to person_comment_mention. * Finishing up post body mentions. * Combined tables try 2 * Finishing up combined report table. * Fix ts optionals. * Adding tests, triggers, and history updates for report_combined. * Adding profile. * Add cursor pagination to report_combined view (#5244) * add pagination cursor * store timestamp instead of id in cursor (partial) * Revert "store timestamp instead of id in cursor (partial)" This reverts commit89359dde4b
. * use paginated query builder * Fixing migration and paged API. * Using dullbananas trigger procedure * Removing pointless list routes, reorganizing tests. * Fixing column XOR check. * Forgot to remove list report actions. * Cleanup. * Use internal tagging. * Fixing api tests. * Adding a few indexes. * Fixing migration name. * Fixing unique constraints. * Addressing PR comments. * Start working on profile combined * Adding views and replaceable schema. * A few changes to profile view. - Separating the profile fetch from its combined content fetch. - Starting to separate saved_only into its own combined view. * Finishing up combined person_saved and person_content. * Fixing api tests. * Moving to api-v4 routes. * Fixing imports. * Update crates/db_views/src/report_combined_view.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Update crates/db_views/src/report_combined_view.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Update crates/db_views/src/report_combined_view.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Update migrations/2024-12-02-181601_add_report_combined_table/up.sql Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Update migrations/2024-12-02-181601_add_report_combined_table/up.sql Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Fixing import and fmt. * Fixing null types in postgres. * Comment out err. * Fixing TS issues. * Adding types, fixing allow and blocklist crud. * Starting to work on combined views. * Using dullbananas trigger procedure * Adding the full combined view queries. * Adding tests. * taplo fmt. * Upgrading package.json deps. * Updating pnpm * Most of the bulk work done, need to add tests yet. * Finishing up inbox. * Using assert_length * Fixing sql_format. * Running fmt. * Fixing cargo shear. * Fixing clippy. * Addressing PR comments. * Starting to work on search combined. * Fix * Removing serialization * Removing serialization * Moving db_views_actor and _moderator into db_views. - This is necessary because the combined views use both, and that separation was arbitrary to begin with. db_schema has no such crate separation. * Adding search combined view, need to write tests yet. * Filters done, working on tests. * Adding tests for person, post, and community. * Finishing up tests. * Fixing duped trigger. * Remove saved_only test. * Remove pointless post_tags types. * Remove pointless index. * Changing published to saved for person_saved_combined. * Removing comment. * Renaming modlog when_ columns to published. - Fixes #5312 * Adding strum and simplifying imports. * Avoiding clone in map_to_enum * Changing modded_person to other_person. * Update crates/db_views_moderator/src/modlog_combined_view.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Update crates/db_views_moderator/src/modlog_combined_view.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Update crates/db_views_moderator/src/modlog_combined_view.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Addressing PR comments. * Fixing split. * Revert "Adding strum and simplifying imports." This reverts commit15f1671107
. * Running fmt. * Using assert + matches instead of filter_map. * Adding listPersonContent check. * Updating lemmy-js-client * Fixing mark all as read route, changing mark read to SuccessResponse. * Adding post body mention api test, fixing api tests. * Fixing route locations, and api tests. * Formatting sql. * Formatting sql 2. * Fixing search result, running clippy. * Fixing ts_option. * Adding search_combined.score column, and DB triggers. * Fixing API tests. * Adding an index for score. * Update crates/db_schema/src/newtypes.rs Co-authored-by: dullbananas <dull.bananas0@gmail.com> * Avoiding inner joins for up.sql * Adding person_aggregates.published column. --------- Co-authored-by: dullbananas <dull.bananas0@gmail.com>
182 lines
5.4 KiB
TOML
182 lines
5.4 KiB
TOML
[workspace.package]
|
|
version = "0.19.6-beta.7"
|
|
edition = "2021"
|
|
description = "A link aggregator for the fediverse"
|
|
license = "AGPL-3.0"
|
|
homepage = "https://join-lemmy.org/"
|
|
documentation = "https://join-lemmy.org/docs/en/index.html"
|
|
repository = "https://github.com/LemmyNet/lemmy"
|
|
|
|
[package]
|
|
name = "lemmy_server"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
documentation.workspace = true
|
|
repository.workspace = true
|
|
publish = false
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
# See https://github.com/johnthagen/min-sized-rust for additional optimizations
|
|
[profile.release]
|
|
lto = "fat"
|
|
opt-level = 3 # Optimize for speed, not size.
|
|
codegen-units = 1 # Reduce parallel code generation.
|
|
|
|
# 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
|
|
|
|
[features]
|
|
json-log = ["tracing-subscriber/json"]
|
|
default = []
|
|
|
|
[workspace]
|
|
members = [
|
|
"crates/api",
|
|
"crates/api_crud",
|
|
"crates/api_common",
|
|
"crates/apub",
|
|
"crates/utils",
|
|
"crates/db_perf",
|
|
"crates/db_schema",
|
|
"crates/db_views",
|
|
"crates/routes",
|
|
"crates/federate",
|
|
]
|
|
|
|
[workspace.lints.clippy]
|
|
cast_lossless = "deny"
|
|
complexity = { level = "deny", priority = -1 }
|
|
correctness = { level = "deny", priority = -1 }
|
|
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 = { level = "deny", priority = -1 }
|
|
redundant_closure_for_method_calls = "deny"
|
|
style = { level = "deny", priority = -1 }
|
|
suspicious = { level = "deny", priority = -1 }
|
|
uninlined_format_args = "allow"
|
|
unused_self = "deny"
|
|
unwrap_used = "deny"
|
|
unimplemented = "deny"
|
|
unused_async = "deny"
|
|
map_err_ignore = "deny"
|
|
expect_used = "deny"
|
|
|
|
[workspace.dependencies]
|
|
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_federate = { version = "=0.19.6-beta.7", path = "./crates/federate" }
|
|
activitypub_federation = { version = "0.6.1", default-features = false, features = [
|
|
"actix-web",
|
|
] }
|
|
diesel = "2.2.6"
|
|
diesel_migrations = "2.2.0"
|
|
diesel-async = "0.5.2"
|
|
serde = { version = "1.0.217", features = ["derive"] }
|
|
serde_with = "3.12.0"
|
|
actix-web = { version = "4.9.0", default-features = false, features = [
|
|
"compress-brotli",
|
|
"compress-gzip",
|
|
"compress-zstd",
|
|
"cookies",
|
|
"macros",
|
|
"rustls-0_23",
|
|
] }
|
|
tracing = "0.1.41"
|
|
tracing-actix-web = { version = "0.7.15", default-features = false }
|
|
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
|
url = { version = "2.5.4", features = ["serde"] }
|
|
reqwest = { version = "0.12.12", default-features = false, features = [
|
|
"blocking",
|
|
"gzip",
|
|
"json",
|
|
"rustls-tls",
|
|
] }
|
|
reqwest-middleware = "0.3.3"
|
|
reqwest-tracing = "0.5.5"
|
|
clokwerk = "0.4.0"
|
|
doku = { version = "0.21.1", features = ["url-2"] }
|
|
bcrypt = "0.16.0"
|
|
chrono = { version = "0.4.39", features = [
|
|
"now",
|
|
"serde",
|
|
], default-features = false }
|
|
serde_json = { version = "1.0.137", features = ["preserve_order"] }
|
|
base64 = "0.22.1"
|
|
uuid = { version = "1.12.1", features = ["serde"] }
|
|
async-trait = "0.1.85"
|
|
captcha = "0.0.9"
|
|
anyhow = { version = "1.0.95", features = ["backtrace"] }
|
|
diesel_ltree = "0.4.0"
|
|
serial_test = "3.2.0"
|
|
tokio = { version = "1.43.0", features = ["full"] }
|
|
regex = "1.11.1"
|
|
diesel-derive-newtype = "2.1.2"
|
|
diesel-derive-enum = { version = "2.1.0", features = ["postgres"] }
|
|
enum-map = { version = "2.7" }
|
|
strum = { version = "0.26.3", features = ["derive"] }
|
|
itertools = "0.14.0"
|
|
futures = "0.3.31"
|
|
http = "1.2"
|
|
rosetta-i18n = "0.1.3"
|
|
ts-rs = { version = "10.1.0", features = [
|
|
"chrono-impl",
|
|
"no-serde-warnings",
|
|
"url-impl",
|
|
] }
|
|
rustls = { version = "0.23.21", features = ["ring"] }
|
|
futures-util = "0.3.31"
|
|
tokio-postgres = "0.7.12"
|
|
tokio-postgres-rustls = "0.13.0"
|
|
urlencoding = "2.1.3"
|
|
moka = { version = "0.12.10", features = ["future"] }
|
|
i-love-jesus = { version = "0.1.0" }
|
|
clap = { version = "4.5.27", features = ["derive", "env"] }
|
|
pretty_assertions = "1.4.1"
|
|
derive-new = "0.7.0"
|
|
diesel-bind-if-some = "0.1.0"
|
|
tuplex = "0.1.2"
|
|
|
|
[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 }
|
|
lemmy_federate = { workspace = true }
|
|
activitypub_federation = { workspace = true }
|
|
actix-web = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-actix-web = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
reqwest-middleware = { workspace = true }
|
|
reqwest-tracing = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
rustls = { workspace = true }
|
|
tokio.workspace = true
|
|
clap = { workspace = true }
|