post_archiver/utils/mod.rs
1//! Utility functions and constants for the post archiver system
2//!
3//! # Overview
4//! This module provides common utilities and configuration constants used
5//! throughout the post archiver system. It includes database configuration,
6
7#[macro_use]
8pub(crate) mod macros;
9
10/// Default relative path to the SQLite database file
11///
12/// # Usage
13/// This constant defines the default location where the post archiver
14/// will create and access its SQLite database. The path is relative
15/// to the current working directory.
16pub const DATABASE_NAME: &str = "post-archiver.db";
17
18/// Current version of the post archiver library
19///
20/// # Details
21/// - Automatically set from Cargo.toml at build time
22/// - Follows semantic versioning (MAJOR.MINOR.PATCH)
23/// - Used for version checking and compatibility
24pub const VERSION: &str = env!("CARGO_PKG_VERSION");