pub(super) fn resolve_modules_dir(
    config: &TomlAppServiceConfig,
    modules_dir: Option<String>,
) -> Option<PathBuf> {
    match modules_dir {
        Some(modules_dir) => Some(PathBuf::from(modules_dir)),
        None => config
            .toml_marine_config
            .modules_dir
            .as_ref()
            .map(PathBuf::from),
    }
}
/// Tries to determine a dir with compiled Wasm modules according to the following rules:
///  - if the modules_dir attribute is specified (by user) it will be chosen,
///  - otherwise if modules_dir is specified in AppService config it will be chosen,
///  - otherwise None will be returned.
Tries to determine a dir with compiled Wasm modules according to the following rules:
if the modules_dir attribute is specified (by user) it will be chosen,
otherwise if modules_dir is specified in AppService config it will be chosen,
otherwise None will be returned.
Tries to determine a dir with compiled Wasm modules according to the following rules : if the modules_dir attribute is specified ( by user ) it will be chosen otherwise if modules_dir is specified in AppService config it will be chosen otherwise None will be returned .
pub(super) fn resolve_modules_dir(
    config: &TomlAppServiceConfig,
    modules_dir: Option<String>,
) -> Option<PathBuf> {
    match modules_dir {
        Some(modules_dir) => Some(PathBuf::from(modules_dir)),
        None => config
            .toml_marine_config
            .modules_dir
            .as_ref()
            .map(PathBuf::from),
    }
}
pub ( super ) fn resolve_modules_dir ( config : & TomlAppServiceConfig , modules_dir : Option < String > , ) -> Option < PathBuf > { match modules_dir { Some ( modules_dir ) => Some ( PathBuf :: from ( modules_dir ) ) , None => config . toml_marine_config . modules_dir . as_ref ( ) . map ( PathBuf :: from ) , } }
Tries to determine a dir with compiled Wasm modules according to the following rules:
 if the modules_dir attribute is specified (by user) it will be chosen,
 otherwise if modules_dir is specified in AppService config it will be chosen,
 otherwise None will be returned.
Tries to determine a dir with compiled Wasm modules according to the following rules : if the modules_dir attribute is specified ( by user ) it will be chosen otherwise if modules_dir is specified in AppService config it will be chosen otherwise None will be returned .
config
&TomlAppServiceConfig
modules_dir
Option<String>