1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use massa_sc_runtime::GasCosts;
use std::path::PathBuf;

pub struct ModuleCacheConfig {
    /// Path to the hard drive cache storage
    pub hd_cache_path: PathBuf,
    /// Gas costs used to:
    /// * setup `massa-sc-runtime` metering on compilation
    /// * debit compilation costs
    pub gas_costs: GasCosts,
    /// Maximum number of entries we want to keep in the LRU cache
    pub lru_cache_size: u32,
    /// Maximum number of entries we want to keep in the HD cache
    pub hd_cache_size: usize,
    /// Amount of entries removed when `hd_cache_size` is reached
    pub snip_amount: usize,
    /// Maximum length of a module
    pub max_module_length: u64,
}