Compute snapshot context from project in build

This commit is contained in:
Lucien Greathouse
2019-10-11 18:25:12 -07:00
parent b093626a21
commit 83665018d4
2 changed files with 33 additions and 9 deletions

View File

@@ -4,8 +4,10 @@ use rlua::{Lua, RegistryKey};
#[derive(Debug)]
pub struct InstanceSnapshotContext {
/// Empty struct that will be used later to fill out required Lua state for
/// user plugins.
/// Holds all the state needed to run user plugins as part of the snapshot
/// process.
///
/// If this is None, then plugins should not be evaluated at all.
pub plugin_context: Option<SnapshotPluginContext>,
}