Add support for updating instances defined in project nodes

This commit is contained in:
Lucien Greathouse
2019-10-18 18:06:40 -07:00
parent 30c8ea583b
commit 07801a0283
7 changed files with 154 additions and 9 deletions

View File

@@ -39,6 +39,8 @@ use self::{
};
use crate::vfs::{Vfs, VfsEntry, VfsFetcher};
pub use self::project::snapshot_project_node;
macro_rules! middlewares {
( $($middleware: ident,)* ) => {
/// Generates a snapshot of instances from the given VfsEntry.

View File

@@ -76,7 +76,7 @@ impl SnapshotMiddleware for SnapshotProject {
}
}
fn snapshot_project_node<F: VfsFetcher>(
pub fn snapshot_project_node<F: VfsFetcher>(
context: &mut InstanceSnapshotContext,
instance_name: &str,
node: &ProjectNode,