summaryrefslogtreecommitdiffstats
path: root/plugins/plugin_lua/src/config.rs
blob: eb197bd9010506255d68caae31819985f83671cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

#[derive(Debug, serde::Deserialize, tedge_api::Config)]
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>,
}