43 lines
829 B
Rust
43 lines
829 B
Rust
#[macro_use]
|
|
extern crate diesel;
|
|
|
|
pub mod auth;
|
|
pub mod cleanup;
|
|
pub mod data;
|
|
pub mod database;
|
|
pub mod error;
|
|
pub mod exif;
|
|
pub mod file_types;
|
|
pub mod files;
|
|
pub mod geo;
|
|
pub mod memories;
|
|
pub mod otel;
|
|
pub mod service;
|
|
pub mod state;
|
|
pub mod tags;
|
|
#[cfg(test)]
|
|
pub mod testhelpers;
|
|
pub mod video;
|
|
|
|
// Re-export commonly used types
|
|
pub use data::{Claims, ThumbnailRequest};
|
|
pub use database::{connect, schema};
|
|
pub use state::AppState;
|
|
|
|
// Stub functions for modules that reference main.rs
|
|
// These are not used by cleanup_files binary
|
|
use std::path::Path;
|
|
use walkdir::DirEntry;
|
|
|
|
pub fn create_thumbnails() {
|
|
// Stub - implemented in main.rs
|
|
}
|
|
|
|
pub fn update_media_counts(_media_dir: &Path) {
|
|
// Stub - implemented in main.rs
|
|
}
|
|
|
|
pub fn is_video(entry: &DirEntry) -> bool {
|
|
file_types::direntry_is_video(entry)
|
|
}
|