diff options
Diffstat (limited to 'plugins/plugin_lua/src/config.rs')
-rw-r--r-- | plugins/plugin_lua/src/config.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/plugin_lua/src/config.rs b/plugins/plugin_lua/src/config.rs index 46eac953..eb197bd9 100644 --- a/plugins/plugin_lua/src/config.rs +++ b/plugins/plugin_lua/src/config.rs @@ -4,4 +4,10 @@ use std::path::PathBuf; pub struct Config { /// The path to the script to execute pub(crate) script: PathBuf, + + /// How much memory the lua virtual machine can allocate + /// + /// If not specified, no memory limit is set, which means that the lua process can OOM the + /// system. + pub(crate) memory_limit: Option<tedge_lib::config::ByteSize>, } |