(&self)
| 1042 | } |
| 1043 | |
| 1044 | pub fn app_compose_hash(&self) -> Result<[u8; 32]> { |
| 1045 | use sha2::Digest; |
| 1046 | let compose_path = self.app_compose_path(); |
| 1047 | let compose = fs::read(compose_path).context("Failed to read compose")?; |
| 1048 | Ok(sha2::Sha256::new_with_prefix(&compose).finalize().into()) |
| 1049 | } |
| 1050 | |
| 1051 | pub fn user_config_path(&self) -> PathBuf { |
| 1052 | self.shared_dir().join(USER_CONFIG) |
no test coverage detected