Skip to main content

cloudillo_file/
lib.rs

1//! File subsystem. File storage, metadata, documents, etc.
2
3#![allow(dead_code)]
4#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
5#![forbid(unsafe_code)]
6
7pub(crate) mod audio;
8pub mod descriptor;
9pub(crate) mod duplicate;
10pub(crate) mod ffmpeg;
11pub mod filter;
12pub mod handler;
13pub mod image;
14pub mod management;
15pub(crate) mod pdf;
16pub mod perm;
17pub mod preset;
18pub mod settings;
19pub(crate) mod store;
20pub(crate) mod svg;
21pub mod sync;
22pub mod tag;
23pub(crate) mod variant;
24pub(crate) mod video;
25
26mod prelude;
27
28use prelude::*;
29
30pub fn register_settings(
31	registry: &mut cloudillo_core::settings::SettingsRegistry,
32) -> ClResult<()> {
33	settings::register_settings(registry)
34}
35
36pub fn init(app: &App) -> ClResult<()> {
37	app.scheduler.register::<image::ImageResizerTask>()?;
38	app.scheduler.register::<descriptor::FileIdGeneratorTask>()?;
39	app.scheduler.register::<video::VideoTranscoderTask>()?;
40	app.scheduler.register::<audio::AudioExtractorTask>()?;
41	app.scheduler.register::<pdf::PdfProcessorTask>()?;
42	Ok(())
43}
44
45// vim: ts=4