Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

gpui-kit is pinned, and a test checks the window layer in Cargo.lock is our fork

gelenmedya0961e79c08c9
diff --git a/Cargo.toml b/Cargo.toml
index 48e78451..6722fbbc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,7 +22,8 @@ filmcraft-codecs = { git = "https://github.com/storytold/filmcraft", rev = "c2f6
filmcraft-frame = { git = "https://github.com/storytold/filmcraft", rev = "c2f65871e998cca4700a74dbcf9348cab51fb06b" }
filmcraft-color = { git = "https://github.com/storytold/filmcraft", rev = "c2f65871e998cca4700a74dbcf9348cab51fb06b" }
filmcraft-time = { git = "https://github.com/storytold/filmcraft", rev = "c2f65871e998cca4700a74dbcf9348cab51fb06b" }
-gpui-kit = "0.9.0"
+# (exactly this version: a newer one asks for a newer gpui-pre-windows, which our fork below would then no longer replace)
+gpui-kit = "=0.9.0"
anyhow = "1"
thiserror = "2"
log = "0.4"
diff --git a/crates/rf-app/src/lib.rs b/crates/rf-app/src/lib.rs
index c7cbd515..1c998713 100644
--- a/crates/rf-app/src/lib.rs
+++ b/crates/rf-app/src/lib.rs
@@ -594,6 +594,33 @@ fn select_arg(args: &[String]) -> Option<String> {
(lower.starts_with("/select,") || lower.starts_with("-select,")).then(|| clean(&all[8..])).flatten()
}
+/// The window layer the program is built with is our fork of gpui-pre-windows, and only it.
+///
+/// WHY. The fork takes the place of the registry's crate through `[patch.crates-io]`, and a patch only applies while its version is
+/// the one the dependency graph asks for. A `cargo update` that moves gpui-kit to a release wanting a newer gpui-pre-windows leaves
+/// the patch unused: cargo only warns, builds the registry's layer, and everything the fork adds (drawing on demand, the drag and
+/// drop fixes, the hybrid renderer) is gone without an error. That happened in a sibling project (rustyeq, 2026-12-04: a minimized
+/// window repainted for every screen refresh). gpui-kit is pinned in the root Cargo.toml for this; the test is the second lock.
+#[cfg(test)]
+mod fork_tests {
+ #[test]
+ fn the_lock_file_has_one_window_layer_and_it_is_our_fork() {
+ let lock = include_str!("../../../Cargo.lock");
+ let mut sources = Vec::new();
+ let mut lines = lock.lines();
+ while let Some(line) = lines.next() {
+ if line.trim() == r#"name = "gpui-pre-windows""# {
+ // (name, version, then the source; a path patch, used while the fork is being changed, has no source line)
+ let source = lines.by_ref().take(2).find(|l| l.starts_with("source = ")).unwrap_or("source = (a local path)");
+ sources.push(source.to_string());
+ }
+ }
+ assert_eq!(sources.len(), 1, "exactly one gpui-pre-windows in Cargo.lock: {sources:?}");
+ assert!(!sources[0].contains("registry+"), "gpui-pre-windows comes from the registry, the fork's patch is not applied: {}", sources[0]);
+ assert!(sources[0].contains("gelenmedya/gpui-pre-windows") || sources[0].contains("a local path"), "{}", sources[0]);
+ }
+}
+
#[cfg(test)]
mod select_arg_tests {
fn sel(args: &[&str]) -> Option<String> {