massa_module_cache/
config.rs

1use massa_sc_runtime::{CondomLimits, GasCosts};
2use std::path::PathBuf;
3
4pub struct ModuleCacheConfig {
5    /// Path to the hard drive cache storage
6    pub hd_cache_path: PathBuf,
7    /// Gas costs used to:
8    /// * setup `massa-sc-runtime` metering on compilation
9    /// * debit compilation costs
10    pub gas_costs: GasCosts,
11    /// Maximum number of entries we want to keep in the LRU cache
12    pub lru_cache_size: u32,
13    /// Maximum number of entries we want to keep in the HD cache
14    pub hd_cache_size: usize,
15    /// Amount of entries removed when `hd_cache_size` is reached
16    pub snip_amount: usize,
17    /// Maximum length of a module
18    pub max_module_length: u64,
19    /// Runtime condom middleware limits
20    pub condom_limits: CondomLimits,
21}