proto_deno/
verify.rs

1use crate::DenoLanguage;
2use proto_core::{async_trait, ProtoError, Verifiable};
3use std::path::{Path, PathBuf};
4
5#[async_trait]
6impl Verifiable<'_> for DenoLanguage {
7    fn get_checksum_path(&self) -> Result<PathBuf, ProtoError> {
8        Ok(self.temp_dir.join("checksum"))
9    }
10
11    fn get_checksum_url(&self) -> Result<Option<String>, ProtoError> {
12        Ok(None)
13    }
14
15    async fn verify_checksum(
16        &self,
17        _checksum_file: &Path,
18        _download_file: &Path,
19    ) -> Result<bool, ProtoError> {
20        // Deno doesn't have checksums!
21        Ok(true)
22    }
23}