The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(mlx): SF_DATALESS und is_dataless gehoeren zu macOS und bekommen das cfg
purpleb26f18a901ab
diff --git a/src-tauri/src/commands/mlx_snapshot.rs b/src-tauri/src/commands/mlx_snapshot.rsindex e841ce48..56bffd96 100644--- a/src-tauri/src/commands/mlx_snapshot.rs+++ b/src-tauri/src/commands/mlx_snapshot.rs@@ -381,8 +381,15 @@ fn looks_like_lfs_pointer(path: &Path, len: u64) -> bool {/// `SF_DATALESS`. Apple documents the flag as internal and refuses to let user/// space set or clear it, so the constant is carried here rather than read/// from a crate.+///+/// Nur macOS: das Flag steht in `st_flags`, und an `st_flags` kommt allein+/// `std::os::macos::fs::MetadataExt`. Ohne dieses `cfg` bleiben Konstante und+/// Pruefung auf Linux und Windows uebrig, wo sie niemand lesen kann, und+/// `-D warnings` macht aus dem toten Posten einen Fehler.+#[cfg(target_os = "macos")]const SF_DATALESS: u32 = 0x4000_0000;+#[cfg(target_os = "macos")]fn is_dataless(flags: u32) -> bool {flags & SF_DATALESS != 0}@@ -1332,6 +1339,10 @@ mod tests {assert_eq!(drop_orphaned_partials(&snap, digest), 0);}+ // Geht mit der Pruefung selbst auf macOS: ohne dieses `cfg` griffe der+ // Test auf Linux und Windows nach Posten, die es dort nicht mehr gibt, und+ // `cargo test` scheiterte schon am Uebersetzen statt an einer Lint-Regel.+ #[cfg(target_os = "macos")]#[test]fn an_icloud_placeholder_is_not_a_downloaded_file() {// The flag cannot be set from user space, so the predicate is proved