Skip to main content

rskit_storage/
lib.rs

1//! File I/O, storage backends, temp files, and MIME detection.
2//!
3//! `rskit-storage` provides generic file operations for any file type: read, write, copy, stream,
4//! detect type, manage temp files, and store through the [`FileStore`] trait.
5
6#![warn(missing_docs)]
7
8mod meta;
9mod sink;
10mod source;
11/// Storage backends for file persistence.
12pub mod store;
13mod temp;
14mod transfer;
15
16pub use meta::{FileKind, FileMeta, detect_kind, detect_mime, file_meta};
17pub use sink::{FileSink, FileWriter};
18pub use source::{FileSource, ResolvedPath};
19pub use store::{
20    DEFAULT_CONTENT_TYPE, FileStore, LocalStore, LocalStoreConfig, ProgressCallback, StorageConfig,
21    StorageFactory, StorageRegistry, StoredFile, UploadOptions, UploadProgress,
22    content_type_or_default, prefixed_key, register_local,
23};
24pub use temp::{TempDir, TempFile};
25pub use transfer::{copy_file, transfer};