filament-utilities · common
Source declarations, signatures and documentation for common.
Read the current implementation boundaries before integration. This reference reproduces declarations; it omits source comments whose examples or readiness claims have not been verified.
Source: sigil/weave/filament/filament-utilities/src/common.rs. SHA-256: 8f5d800ddc781d7d33e0846cf2b894433e50470f1cb4ae95b398c13843df5254.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
common::setup_logging
pub fn setup_logging(verbose: u8);Source line: 8.
common::ensure_dir_exists
pub fn ensure_dir_exists(path: &Path) -> Result<()>;Source line: 26.
common::read_file_string
pub fn read_file_string(path: &Path) -> Result<String>;Source line: 40.
common::write_file_string
pub fn write_file_string(path: &Path, content: &str) -> Result<()>;Source line: 50.
common::parse_destination_hash
pub fn parse_destination_hash(s: &str) -> Result<[u8; 16]>;Source line: 60.
common::format_destination_hash
pub fn format_destination_hash(hash: &[u8; 16]) -> String;Source line: 75.
common::format_bytes
pub fn format_bytes(bytes: u64) -> String;Source line: 80.
common::format_duration
pub fn format_duration(seconds: u64) -> String;Source line: 85.
common::check_privileges
pub fn check_privileges() -> Result<()>;Source line: 102.