mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Refcount entries in snapshot context, moving towards sharing
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
use std::{fmt, fs, ops::Deref, path::Path};
|
||||
use std::{fmt, fs, ops::Deref, path::Path, sync::Arc};
|
||||
|
||||
use rlua::{Lua, RegistryKey};
|
||||
|
||||
use super::error::SnapshotError;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct InstanceSnapshotContext {
|
||||
/// 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>,
|
||||
pub plugin_context: Option<Arc<SnapshotPluginContext>>,
|
||||
}
|
||||
|
||||
impl Default for InstanceSnapshotContext {
|
||||
|
||||
Reference in New Issue
Block a user