rojo/src/lib.rs
Joe 5275d45adc Add is_watch_enabled method to VFS and enhance prefetch cache tests
- Introduced `is_watch_enabled` method to check the status of automatic file watching in the VFS.
- Added a new test for prefetch cache to validate metadata retrieval and error handling for walked roots and external paths.
- Updated the `watch` method in `StdBackend` for cleaner logic.
- Enhanced the `dir_init` field in `PrefetchCache` to store resolved init-file information for directories, improving prefetch operations.
2026-03-06 21:51:22 -06:00

44 lines
1.1 KiB
Rust

// Recursion limit bump is to support Ritz, a JSX-like proc macro used for
// Rojo's web UI currently.
#![recursion_limit = "1024"]
pub mod cli;
#[cfg(test)]
mod tree_view;
mod change_processor;
pub mod git;
mod glob;
mod json;
pub mod logging;
mod lua_ast;
mod message_queue;
mod multimap;
mod path_serializer;
mod project;
mod resolution;
pub mod roblox_api;
mod rojo_ref;
mod serve_session;
mod session_id;
pub mod snapshot;
mod snapshot_middleware;
pub mod syncback;
pub mod variant_eq;
mod web;
// TODO: Work out what we should expose publicly
pub use git::{git_add, git_add_all_and_commit, git_init_repo, git_is_staged};
pub use project::*;
pub use rojo_ref::*;
pub use serve_session::TreeFreshnessReport;
pub use session_id::SessionId;
pub use snapshot::{
InstanceContext, InstanceMetadata, InstanceSnapshot, InstanceWithMeta, InstanceWithMetaMut,
RojoDescendants, RojoTree,
};
pub use snapshot_middleware::{snapshot_from_vfs, Middleware, ScriptType, INIT_FILE_PRIORITY};
pub use syncback::{syncback_loop, FsSnapshot, SyncbackData, SyncbackResult, SyncbackSnapshot};
pub use web::interface as web_api;