From: Nutomic Date: Wed, 27 Apr 2022 15:56:05 +0000 (+0200) Subject: Remove unused dependencies (#2239) X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/%24%7Bargs.pageFn.jump%20n%7D?a=commitdiff_plain;h=2e01e8e42c5b46939f4c20b3864e0f1b7920fac9;p=lemmy.git Remove unused dependencies (#2239) --- diff --git a/Cargo.lock b/Cargo.lock index 9ff31525..1ca61877 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1804,21 +1804,14 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" name = "lemmy_api" version = "0.16.3" dependencies = [ - "actix", - "actix-rt", "actix-web", "anyhow", "async-trait", - "background-jobs", "base64", "bcrypt", "captcha", "chrono", "diesel", - "futures", - "http", - "http-signature-normalization-actix", - "itertools", "lemmy_api_common", "lemmy_apub", "lemmy_apub_lib", @@ -1828,18 +1821,9 @@ dependencies = [ "lemmy_db_views_moderator", "lemmy_utils", "lemmy_websocket", - "openssl", - "rand 0.8.5", - "reqwest", "serde", "serde_json", - "sha2", - "strum", - "strum_macros", - "thiserror", - "tokio", "tracing", - "url", "uuid", ] @@ -1850,7 +1834,6 @@ dependencies = [ "actix-web", "chrono", "diesel", - "itertools", "lemmy_db_schema", "lemmy_db_views", "lemmy_db_views_actor", @@ -1858,7 +1841,6 @@ dependencies = [ "lemmy_utils", "rosetta-i18n", "serde", - "serde_json", "tracing", "url", ] @@ -1867,42 +1849,21 @@ dependencies = [ name = "lemmy_api_crud" version = "0.16.3" dependencies = [ - "actix", - "actix-rt", "actix-web", - "anyhow", "async-trait", - "background-jobs", - "base64", "bcrypt", - "chrono", - "diesel", - "futures", - "http", - "http-signature-normalization-actix", - "itertools", "lemmy_api_common", "lemmy_apub", "lemmy_apub_lib", "lemmy_db_schema", "lemmy_db_views", "lemmy_db_views_actor", - "lemmy_db_views_moderator", "lemmy_utils", "lemmy_websocket", - "openssl", - "rand 0.8.5", - "reqwest", "serde", "serde_json", - "sha2", - "strum", - "strum_macros", - "thiserror", - "tokio", "tracing", "url", - "uuid", "webmention", ] @@ -1917,8 +1878,6 @@ dependencies = [ "anyhow", "assert-json-diff", "async-trait", - "background-jobs", - "bcrypt", "chrono", "diesel", "futures", @@ -1935,8 +1894,6 @@ dependencies = [ "lemmy_websocket", "once_cell", "parking_lot 0.12.0", - "percent-encoding", - "rand 0.8.5", "reqwest", "reqwest-middleware", "serde", @@ -1944,10 +1901,7 @@ dependencies = [ "serde_with", "serial_test", "sha2", - "strum", "strum_macros", - "thiserror", - "tokio", "tracing", "url", "uuid", @@ -1974,7 +1928,6 @@ dependencies = [ "reqwest", "reqwest-middleware", "serde", - "serde_json", "sha2", "tracing", "url", @@ -2021,7 +1974,6 @@ dependencies = [ "serde", "serial_test", "tracing", - "url", ] [[package]] @@ -2046,9 +1998,7 @@ dependencies = [ name = "lemmy_routes" version = "0.16.3" dependencies = [ - "actix", "actix-web", - "actix-web-actors", "anyhow", "chrono", "diesel", @@ -2065,7 +2015,6 @@ dependencies = [ "reqwest-middleware", "rss", "serde", - "sha2", "strum", "tokio", "tracing", @@ -2077,29 +2026,21 @@ name = "lemmy_server" version = "0.16.3" dependencies = [ "actix", - "actix-rt", "actix-web", - "anyhow", - "chrono", "clokwerk", "console-subscriber", "diesel", "diesel_migrations", "doku", - "http-signature-normalization-actix", "lemmy_api", "lemmy_api_common", "lemmy_api_crud", "lemmy_apub", "lemmy_apub_lib", "lemmy_db_schema", - "lemmy_db_views", - "lemmy_db_views_actor", - "lemmy_db_views_moderator", "lemmy_routes", "lemmy_utils", "lemmy_websocket", - "openssl", "opentelemetry 0.17.0", "opentelemetry-otlp", "parking_lot 0.12.0", @@ -2107,9 +2048,6 @@ dependencies = [ "reqwest-middleware", "reqwest-tracing", "serde", - "serde_json", - "strum", - "tokio", "tracing", "tracing-actix-web", "tracing-error", @@ -2154,7 +2092,6 @@ dependencies = [ "strum", "strum_macros", "thiserror", - "tokio", "tracing", "tracing-error", "url", @@ -2179,9 +2116,7 @@ dependencies = [ "lemmy_db_views_actor", "lemmy_utils", "opentelemetry 0.17.0", - "parking_lot 0.12.0", "rand 0.8.5", - "reqwest", "reqwest-middleware", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index a8fce721..cd5abaa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,15 +41,11 @@ lemmy_apub = { version = "=0.16.3", path = "./crates/apub" } lemmy_apub_lib = { version = "=0.16.3", path = "./crates/apub_lib" } lemmy_utils = { version = "=0.16.3", path = "./crates/utils" } lemmy_db_schema = { version = "=0.16.3", path = "./crates/db_schema" } -lemmy_db_views = { version = "=0.16.3", path = "./crates/db_views" } -lemmy_db_views_moderator = { version = "=0.16.3", path = "./crates/db_views_moderator" } -lemmy_db_views_actor = { version = "=0.16.3", path = "./crates/db_views_actor" } lemmy_api_common = { version = "=0.16.3", path = "crates/api_common" } lemmy_websocket = { version = "=0.16.3", path = "./crates/websocket" } lemmy_routes = { version = "=0.16.3", path = "./crates/routes" } diesel = "1.4.8" diesel_migrations = "1.4.0" -chrono = { version = "0.4.19", features = ["serde"] } serde = { version = "1.0.136", features = ["derive"] } actix = "0.13.0" actix-web = { version = "4.0.1", default-features = false, features = ["macros", "rustls"] } @@ -59,17 +55,10 @@ tracing-error = "0.2.0" tracing-log = "0.1.2" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } console-subscriber = { version = "0.1.3", optional = true } -strum = "0.24.0" url = { version = "2.2.2", features = ["serde"] } -openssl = "0.10.38" -http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["sha-2"] } -tokio = { version = "1.17.0", features = ["sync", "tracing"] } -anyhow = "1.0.56" reqwest = { version = "0.11.10", features = ["json"] } reqwest-middleware = "0.1.5" reqwest-tracing = { version = "0.2.1", features = ["opentelemetry_0_16"] } -actix-rt = { version = "2.7.0", default-features = false } -serde_json = { version = "1.0.79", features = ["preserve_order"] } clokwerk = "0.3.5" doku = "0.11.0" opentelemetry = { version = "0.17.0", features = ["rt-tokio"] } diff --git a/crates/api/Cargo.toml b/crates/api/Cargo.toml index 9a69a0dd..4cf4f17d 100644 --- a/crates/api/Cargo.toml +++ b/crates/api/Cargo.toml @@ -27,26 +27,10 @@ bcrypt = "0.12.1" chrono = { version = "0.4.19", features = ["serde"] } serde_json = { version = "1.0.79", features = ["preserve_order"] } serde = { version = "1.0.136", features = ["derive"] } -actix = "0.13.0" actix-web = { version = "4.0.1", default-features = false } -actix-rt = { version = "2.7.0", default-features = false } -rand = "0.8.5" -strum = "0.24.0" -strum_macros = "0.24.0" -url = { version = "2.2.2", features = ["serde"] } -openssl = "0.10.38" -http = "0.2.6" -http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["sha-2"] } base64 = "0.13.0" -tokio = "1.17.0" -futures = "0.3.21" -itertools = "0.10.3" uuid = { version = "0.8.2", features = ["serde", "v4"] } -sha2 = "0.10.2" async-trait = "0.1.53" captcha = "0.0.8" anyhow = "1.0.56" -thiserror = "1.0.30" tracing = "0.1.32" -background-jobs = "0.12.0" -reqwest = { version = "0.11.10", features = ["json"] } diff --git a/crates/api_common/Cargo.toml b/crates/api_common/Cargo.toml index f262a89e..40cd753b 100644 --- a/crates/api_common/Cargo.toml +++ b/crates/api_common/Cargo.toml @@ -22,8 +22,6 @@ serde = { version = "1.0.136", features = ["derive"] } diesel = "1.4.8" actix-web = { version = "4.0.1", default-features = false, features = ["cookies"] } chrono = { version = "0.4.19", features = ["serde"] } -serde_json = { version = "1.0.79", features = ["preserve_order"] } tracing = "0.1.32" url = "2.2.2" -itertools = "0.10.3" rosetta-i18n = "0.1.2" diff --git a/crates/api_crud/Cargo.toml b/crates/api_crud/Cargo.toml index 5f618b1b..523da0ac 100644 --- a/crates/api_crud/Cargo.toml +++ b/crates/api_crud/Cargo.toml @@ -13,35 +13,14 @@ lemmy_apub_lib = { version = "=0.16.3", path = "../apub_lib" } lemmy_utils = { version = "=0.16.3", path = "../utils" } lemmy_db_schema = { version = "=0.16.3", path = "../db_schema" } lemmy_db_views = { version = "=0.16.3", path = "../db_views" } -lemmy_db_views_moderator = { version = "=0.16.3", path = "../db_views_moderator" } lemmy_db_views_actor = { version = "=0.16.3", path = "../db_views_actor" } lemmy_api_common = { version = "=0.16.3", path = "../api_common" } lemmy_websocket = { version = "=0.16.3", path = "../websocket" } -diesel = "1.4.8" bcrypt = "0.12.1" -chrono = { version = "0.4.19", features = ["serde"] } serde_json = { version = "1.0.79", features = ["preserve_order"] } serde = { version = "1.0.136", features = ["derive"] } -actix = "0.13.0" actix-web = { version = "4.0.1", default-features = false } -actix-rt = { version = "2.7.0", default-features = false } tracing = "0.1.32" -rand = "0.8.5" -strum = "0.24.0" -strum_macros = "0.24.0" url = { version = "2.2.2", features = ["serde"] } -openssl = "0.10.38" -http = "0.2.6" -http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["sha-2"] } -base64 = "0.13.0" -tokio = "1.17.0" -futures = "0.3.21" -itertools = "0.10.3" -uuid = { version = "0.8.2", features = ["serde", "v4"] } -sha2 = "0.10.2" async-trait = "0.1.53" -anyhow = "1.0.56" -thiserror = "1.0.30" -background-jobs = "0.12.0" -reqwest = { version = "0.11.10", features = ["json"] } webmention = "0.4.0" diff --git a/crates/apub/Cargo.toml b/crates/apub/Cargo.toml index 7426284d..7fa3e175 100644 --- a/crates/apub/Cargo.toml +++ b/crates/apub/Cargo.toml @@ -22,7 +22,6 @@ lemmy_api_common = { version = "=0.16.3", path = "../api_common" } lemmy_websocket = { version = "=0.16.3", path = "../websocket" } diesel = "1.4.8" activitystreams-kinds = "0.2.1" -bcrypt = "0.12.1" chrono = { version = "0.4.19", features = ["serde"] } serde_json = { version = "1.0.79", features = ["preserve_order"] } serde = { version = "1.0.136", features = ["derive"] } @@ -31,22 +30,16 @@ actix = "0.13.0" actix-web = { version = "4.0.1", default-features = false } actix-rt = { version = "2.7.0", default-features = false } tracing = "0.1.32" -rand = "0.8.5" -strum = "0.24.0" strum_macros = "0.24.0" url = { version = "2.2.2", features = ["serde"] } -percent-encoding = "2.1.0" http = "0.2.6" http-signature-normalization-actix = { version = "0.6.1", default-features = false, features = ["server", "sha-2"] } -tokio = "1.17.0" futures = "0.3.21" itertools = "0.10.3" uuid = { version = "0.8.2", features = ["serde", "v4"] } sha2 = "0.10.2" async-trait = "0.1.53" anyhow = "1.0.56" -thiserror = "1.0.30" -background-jobs = "0.12.0" reqwest = { version = "0.11.10", features = ["json"] } html2md = "0.2.13" once_cell = "1.10.0" diff --git a/crates/apub_lib/Cargo.toml b/crates/apub_lib/Cargo.toml index 1b2cabbf..d3642c04 100644 --- a/crates/apub_lib/Cargo.toml +++ b/crates/apub_lib/Cargo.toml @@ -14,7 +14,6 @@ chrono = "0.4.19" serde = { version = "1.0.136", features = ["derive"] } async-trait = "0.1.53" url = { version = "2.2.2", features = ["serde"] } -serde_json = { version = "1.0.79", features = ["preserve_order"] } anyhow = "1.0.56" reqwest = { version = "0.11.10", features = ["json"] } reqwest-middleware = "0.1.5" diff --git a/crates/db_views/Cargo.toml b/crates/db_views/Cargo.toml index 7fcf2782..4753b38d 100644 --- a/crates/db_views/Cargo.toml +++ b/crates/db_views/Cargo.toml @@ -15,7 +15,6 @@ lemmy_db_schema = { version = "=0.16.3", path = "../db_schema" } diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] } serde = { version = "1.0.136", features = ["derive"] } tracing = "0.1.32" -url = "2.2.2" [dev-dependencies] serial_test = "0.6.0" diff --git a/crates/routes/Cargo.toml b/crates/routes/Cargo.toml index 6f55d283..f1bf6edc 100644 --- a/crates/routes/Cargo.toml +++ b/crates/routes/Cargo.toml @@ -19,10 +19,7 @@ lemmy_db_schema = { version = "=0.16.3", path = "../db_schema" } lemmy_api_common = { version = "=0.16.3", path = "../api_common" } lemmy_apub = { version = "=0.16.3", path = "../apub" } diesel = "1.4.8" -actix = "0.13.0" actix-web = { version = "4.0.1", default-features = false, features = ["rustls"] } -actix-web-actors = { version = "4.1.0", default-features = false } -sha2 = "0.10.2" anyhow = "1.0.56" chrono = { version = "0.4.19", features = ["serde"] } futures = "0.3.21" diff --git a/crates/utils/Cargo.toml b/crates/utils/Cargo.toml index 951fa964..3984b897 100644 --- a/crates/utils/Cargo.toml +++ b/crates/utils/Cargo.toml @@ -33,7 +33,6 @@ actix-rt = { version = "2.7.0", default-features = false } anyhow = "1.0.56" reqwest = { version = "0.11.10", features = ["json"] } reqwest-middleware = "0.1.5" -tokio = { version = "1.17.0", features = ["sync"] } strum = "0.24.0" strum_macros = "0.24.0" futures = "0.3.21" diff --git a/crates/websocket/Cargo.toml b/crates/websocket/Cargo.toml index 8caf3561..01c985bc 100644 --- a/crates/websocket/Cargo.toml +++ b/crates/websocket/Cargo.toml @@ -18,7 +18,6 @@ lemmy_api_common = { version = "=0.16.3", path = "../api_common" } lemmy_db_schema = { version = "=0.16.3", path = "../db_schema" } lemmy_db_views = { version = "=0.16.3", path = "../db_views" } lemmy_db_views_actor = { version = "=0.16.3", path = "../db_views_actor" } -reqwest = { version = "0.11.10", features = ["json"] } reqwest-middleware = "0.1.5" tracing = "0.1.32" rand = "0.8.5" @@ -36,4 +35,3 @@ actix-web = { version = "4.0.1", default-features = false, features = ["rustls"] actix-web-actors = { version = "4.1.0", default-features = false } opentelemetry = "0.17.0" tracing-opentelemetry = "0.17.2" -parking_lot = "0.12.0"