diff options
Diffstat (limited to 'systems')
| -rw-r--r-- | systems/_asset/test/Cargo.toml | 2 | ||||
| -rw-r--r-- | systems/_constants/src/lib.rs | 6 | ||||
| -rw-r--r-- | systems/sheet/Cargo.toml | 2 | ||||
| -rw-r--r-- | systems/workspace/src/workspace/manager/sheet_state.rs | 2 |
4 files changed, 10 insertions, 2 deletions
diff --git a/systems/_asset/test/Cargo.toml b/systems/_asset/test/Cargo.toml index 3ac0779..57fb93e 100644 --- a/systems/_asset/test/Cargo.toml +++ b/systems/_asset/test/Cargo.toml @@ -6,4 +6,4 @@ edition = "2024" [dependencies] asset_system = { path = "../" } -tokio = { version = "1.48.0", features = ["full"] } +tokio.workspace = true diff --git a/systems/_constants/src/lib.rs b/systems/_constants/src/lib.rs index 31ba591..c030581 100644 --- a/systems/_constants/src/lib.rs +++ b/systems/_constants/src/lib.rs @@ -106,6 +106,12 @@ pub mod vault { /// File and directory path constants for the workspace root #[allow(unused)] pub mod workspace { + /// Others + #[constants_macros::constants("workspace_value")] + pub mod values { + c! { CURRENT_SHEET_FILE_NAME = "CURRENT" } + } + /// File path constants #[constants_macros::constants("workspace_file")] pub mod files { diff --git a/systems/sheet/Cargo.toml b/systems/sheet/Cargo.toml index 7a20b47..ea79bde 100644 --- a/systems/sheet/Cargo.toml +++ b/systems/sheet/Cargo.toml @@ -16,4 +16,4 @@ thiserror.workspace = true just_fmt.workspace = true memmap2 = "0.9" -sha2 = "0.10" +sha2 = "0.11" diff --git a/systems/workspace/src/workspace/manager/sheet_state.rs b/systems/workspace/src/workspace/manager/sheet_state.rs index eddfa84..cd963db 100644 --- a/systems/workspace/src/workspace/manager/sheet_state.rs +++ b/systems/workspace/src/workspace/manager/sheet_state.rs @@ -5,6 +5,7 @@ use asset_system::asset::ReadOnlyAsset; use constants::workspace::{ dirs::workspace_dir_local_sheets, files::{workspace_file_current_sheet, workspace_file_sheet}, + values::workspace_value_current_sheet_file_name, }; use framework::space::error::SpaceError; use just_fmt::snake_case; @@ -88,6 +89,7 @@ impl WorkspaceManager { if path.is_file() && let Some(file_name) = path.file_stem() && let Some(name_str) = file_name.to_str() + && name_str != workspace_value_current_sheet_file_name() { sheet_names.push(name_str.to_string()); } |
