organize "file"-related/adjacent crates together

This commit is contained in:
Brandon Thomas 2023-04-23 00:27:09 -07:00
parent 2f86bc75ac
commit 2d59891dee
34 changed files with 27 additions and 27 deletions

View File

@ -29,13 +29,13 @@ members = [
"crates/lib/deprecated/http_server_common", # TODO(bt, 2023-03-20): Move useful pieces to actix_helpers
"crates/lib/envvar",
"crates/lib/errors",
"crates/lib/files",
"crates/lib/filesys",
"crates/lib/hashing",
"crates/lib/files/files",
"crates/lib/files/filesys",
"crates/lib/files/hashing",
"crates/lib/files/media",
"crates/lib/files/mimetypes",
"crates/lib/idempotency",
"crates/lib/jobs_common",
"crates/lib/media",
"crates/lib/mimetypes",
"crates/lib/mysql_queries",
"crates/lib/redis_common",
"crates/lib/sqlite_queries",

View File

@ -15,7 +15,7 @@ path = "src/lib.rs"
[dependencies]
# Internal
errors = { path = "../../errors" }
hashing = { path = "../../hashing" }
hashing = { path = "../../files/hashing" }
# External
anyhow = "1.0.40"

View File

@ -15,7 +15,7 @@ path = "src/lib.rs"
[dependencies]
# Internal
errors = { path = "../../lib/errors" }
errors = { path = "../../errors" }
# External
# KEEP THIS TO A MINIMUM OR NIL.

View File

@ -21,13 +21,13 @@ mod tests {
#[test]
fn test_directory_exists() {
// Common directories
assert_eq!(true, directory_exists("."));
assert_eq!(true, directory_exists("../../../../.."));
assert_eq!(true, directory_exists("./"));
assert_eq!(true, directory_exists("../"));
assert_eq!(true, directory_exists("/"));
// As PathBuf
assert_eq!(true, directory_exists(PathBuf::from(".")));
assert_eq!(true, directory_exists(PathBuf::from("../../../../..")));
assert_eq!(true, directory_exists(PathBuf::from("./")));
assert_eq!(true, directory_exists(PathBuf::from("../")));
assert_eq!(true, directory_exists(PathBuf::from("/")));

View File

@ -15,7 +15,7 @@ path = "src/lib.rs"
[dependencies]
# Internal
errors = { path = "../../lib/errors" }
errors = { path = "../../errors" }
# External
data-encoding = "2.3.2"

View File

@ -15,7 +15,7 @@ path = "src/lib.rs"
[dependencies]
# Internal
errors = { path = "../errors" }
errors = { path = "../../errors" }
# External
log = "0.4.14"

View File

@ -15,7 +15,7 @@ path = "src/lib.rs"
[dependencies]
# Internal
errors = { path = "../../lib/errors" }
errors = { path = "../../errors" }
# External
infer = "0.11" # Mimetype detection

View File

@ -20,12 +20,12 @@ concurrency = { path = "../../lib/concurrency" }
enums = { path = "../../_types/enums" }
errors = { path = "../../lib/errors" }
fakeyou_client = { path = "../../lib/api_clients/fakeyou_client" }
files = { path = "../../lib/files" }
filesys = { path = "../../lib/filesys" }
hashing = { path = "../../lib/hashing" }
files = { path = "../../lib/files/files" }
filesys = { path = "../../lib/files/filesys" }
hashing = { path = "../../lib/files/hashing" }
http_server_common = { path = "../../lib/deprecated/http_server_common" }
idempotency = { path = "../../lib/idempotency" }
media = { path = "../../lib/media" }
media = { path = "../../lib/files/media" }
sqlite_queries = { path = "../../lib/sqlite_queries" }
tokens = { path = "../../_types/tokens" }
web_scrapers = { path = "../../lib/web_scrapers" }

View File

@ -21,10 +21,10 @@ container_common = { path = "../../../lib/deprecated/container_common" }
enums = { path = "../../../_types/enums" }
envvar = { path = "../../../lib/envvar" }
errors = { path = "../../../lib/errors" }
files = { path = "../../../lib/files" }
filesys = { path = "../../../lib/filesys" }
files = { path = "../../../lib/files/files" }
filesys = { path = "../../../lib/files/filesys" }
google_drive_common = { path = "../../../lib/api_clients/google_drive_common" }
hashing = { path = "../../../lib/hashing" }
hashing = { path = "../../../lib/files/hashing" }
jobs_common = { path = "../../../lib/jobs_common" }
mysql_queries = { path = "../../../lib/mysql_queries" }
reusable_types = { path = "../../../_types/reusable_types" }

View File

@ -22,9 +22,9 @@ container_common = { path = "../../../lib/deprecated/container_common" }
enums = { path = "../../../_types/enums" }
envvar = { path = "../../../lib/envvar" }
errors = { path = "../../../lib/errors" }
files = { path = "../../../lib/files" }
filesys = { path = "../../../lib/filesys" }
hashing = { path = "../../../lib/hashing" }
files = { path = "../../../lib/files/files" }
filesys = { path = "../../../lib/files/filesys" }
hashing = { path = "../../../lib/files/hashing" }
jobs_common = { path = "../../../lib/jobs_common" }
memory_caching = { path = "../../../lib/caching/memory_caching" }
mysql_queries = { path = "../../../lib/mysql_queries" }

View File

@ -20,7 +20,7 @@ config = { path = "../../../lib/deprecated/config" }
container_common = { path = "../../../lib/deprecated/container_common" }
enums = { path = "../../../_types/enums" }
google_drive_common = { path = "../../../lib/api_clients/google_drive_common" }
hashing = { path = "../../../lib/hashing" }
hashing = { path = "../../../lib/files/hashing" }
jobs_common = { path = "../../../lib/jobs_common" }
mysql_queries = { path = "../../../lib/mysql_queries" }
tts_common = { path = "../../../lib/tts_common" }

View File

@ -18,7 +18,7 @@ path = "src/main.rs"
cloud_storage = { path = "../../../lib/api_clients/cloud_storage" }
config = { path = "../../../lib/deprecated/config" }
container_common = { path = "../../../lib/deprecated/container_common" }
hashing = { path = "../../../lib/hashing" }
hashing = { path = "../../../lib/files/hashing" }
jobs_common = { path = "../../../lib/jobs_common" }
memory_caching = { path = "../../../lib/caching/memory_caching" }
mysql_queries = { path = "../../../lib/mysql_queries" }

View File

@ -20,7 +20,7 @@ cloud_storage = { path = "../../../lib/api_clients/cloud_storage" }
config = { path = "../../../lib/deprecated/config" }
container_common = { path = "../../../lib/deprecated/container_common" }
google_drive_common = { path = "../../../lib/api_clients/google_drive_common" }
hashing = { path = "../../../lib/hashing" }
hashing = { path = "../../../lib/files/hashing" }
jobs_common = { path = "../../../lib/jobs_common" }
mysql_queries = { path = "../../../lib/mysql_queries" }
tts_common = { path = "../../../lib/tts_common" }

View File

@ -25,11 +25,11 @@ datetimes = { path = "../../../lib/datetimes" }
enums = { path = "../../../_types/enums" }
envvar = { path = "../../../lib/envvar" }
errors = { path = "../../../lib/errors" }
files = { path = "../../../lib/files" }
files = { path = "../../../lib/files/files" }
google_drive_common = { path = "../../../lib/api_clients/google_drive_common" }
http_server_common = { path = "../../../lib/deprecated/http_server_common" }
jobs_common = { path = "../../../lib/jobs_common" }
media = { path = "../../../lib/media" }
media = { path = "../../../lib/files/media" }
memory_caching = { path = "../../../lib/caching/memory_caching" }
mysql_queries = { path = "../../../lib/mysql_queries" }
redis_caching = { path = "../../../lib/caching/redis_caching" }