diff --git a/crates/schema/buckets/bucket_paths/Cargo.toml b/crates/schema/buckets/bucket_paths/Cargo.toml index 52baa8ec73..36b0f6566e 100644 --- a/crates/schema/buckets/bucket_paths/Cargo.toml +++ b/crates/schema/buckets/bucket_paths/Cargo.toml @@ -16,13 +16,15 @@ path = "src/lib.rs" normal = ["workspace-build-acceleration"] [dependencies] -# Workspace hack (faster compile times) -workspace-build-acceleration = { workspace = true } +# cargo-hakari workspace hack (faster compile times) +workspace-build-acceleration.workspace = true -# Internal +# Internal +# (try not to add new deps as this is used by many crates) crockford.workspace = true # External +# (try not to add new deps as this is used by many crates) # (None yet) [dev-dependencies] diff --git a/crates/schema/buckets/bucket_paths/src/lib.rs b/crates/schema/buckets/bucket_paths/src/lib.rs index 07014d48c6..92c12e17d3 100644 --- a/crates/schema/buckets/bucket_paths/src/lib.rs +++ b/crates/schema/buckets/bucket_paths/src/lib.rs @@ -24,6 +24,5 @@ #![allow(non_snake_case)] pub mod legacy; -pub mod pathing; -pub mod traits; +pub mod path_conventions; pub mod util; \ No newline at end of file diff --git a/crates/schema/buckets/bucket_paths/src/path_conventions/mod.rs b/crates/schema/buckets/bucket_paths/src/path_conventions/mod.rs new file mode 100644 index 0000000000..e08cc3c01c --- /dev/null +++ b/crates/schema/buckets/bucket_paths/src/path_conventions/mod.rs @@ -0,0 +1 @@ +pub mod video_thumbnail_suffixes; \ No newline at end of file diff --git a/crates/schema/buckets/bucket_paths/src/path_conventions/video_thumbnail_suffixes.rs b/crates/schema/buckets/bucket_paths/src/path_conventions/video_thumbnail_suffixes.rs new file mode 100644 index 0000000000..45e029f2ec --- /dev/null +++ b/crates/schema/buckets/bucket_paths/src/path_conventions/video_thumbnail_suffixes.rs @@ -0,0 +1,7 @@ +//! Shared config for thumbnails. + +/// Video media files have conventional gif thumbnails with this suffix. +pub const VIDEO_ANIMATED_GIF_THUMBNAIL_SUFFIX: &str = "-thumb.gif"; + +/// Video media files have conventional static jpg thumbnails with this suffix. +pub const VIDEO_STATIC_JPG_THUMBNAIL_SUFFIX: &str = "-thumb.jpg"; diff --git a/crates/schema/buckets/bucket_paths/src/pathing/mod.rs b/crates/schema/buckets/bucket_paths/src/pathing/mod.rs deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/crates/schema/buckets/bucket_paths/src/traits/bucket_path.rs b/crates/schema/buckets/bucket_paths/src/traits/bucket_path.rs deleted file mode 100644 index 539ad958cc..0000000000 --- a/crates/schema/buckets/bucket_paths/src/traits/bucket_path.rs +++ /dev/null @@ -1,10 +0,0 @@ -use std::path::PathBuf; - -/// Represents a bucket path. -pub trait BucketPath { - /// Return the rooted path of the object as a string - fn to_rooted_string(&self) -> String; - - /// Return the rooted path of the object as a path - fn to_rooted_path(&self) -> PathBuf; -} diff --git a/crates/schema/buckets/bucket_paths/src/traits/mod.rs b/crates/schema/buckets/bucket_paths/src/traits/mod.rs deleted file mode 100644 index 66b404d623..0000000000 --- a/crates/schema/buckets/bucket_paths/src/traits/mod.rs +++ /dev/null @@ -1 +0,0 @@ -mod bucket_path; \ No newline at end of file