Cleanup the config

This commit is contained in:
Omar Abdulla
2025-09-02 18:03:42 +03:00
parent 7878f68c26
commit 1ec1778e32
20 changed files with 777 additions and 416 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ use semver::Version;
use tokio::sync::Mutex;
use crate::download::SolcDownloader;
use anyhow::Context;
use anyhow::Context as _;
pub const SOLC_CACHE_DIRECTORY: &str = "solc";
pub(crate) static SOLC_CACHER: LazyLock<Mutex<HashSet<PathBuf>>> = LazyLock::new(Default::default);
+1 -1
View File
@@ -11,7 +11,7 @@ use semver::Version;
use sha2::{Digest, Sha256};
use crate::list::List;
use anyhow::Context;
use anyhow::Context as _;
pub static LIST_CACHE: LazyLock<Mutex<HashMap<&'static str, List>>> =
LazyLock::new(Default::default);
+1 -1
View File
@@ -5,7 +5,7 @@
use std::path::{Path, PathBuf};
use anyhow::Context;
use anyhow::Context as _;
use cache::get_or_download;
use download::SolcDownloader;