Skip to main content

default_data_dir

Function default_data_dir 

Source
pub fn default_data_dir() -> PathBuf
Expand description

Resolve ~/.trusty-code, the trusty-code data directory.

Why: mirrors trusty-mpm’s ~/.trusty-mpm precedent (crates/trusty-mpm/src/core/paths.rs) rather than inventing a new resolution convention. What: dirs::home_dir()/.trusty-code, falling back to a relative .trusty-code if the home directory cannot be resolved (never panics). Test: path_tests::default_data_dir_is_dot_trusty_code.