Hi everyone,
I just published twilight-cas (0.1.0, Apache-2.0), a small filesystem crate I wrote while building an open-source Minecraft launcher in Rust.
Why I built this:
I made it just for TwilightMC, so you have to tweak it as you did with GPUI to make GPUI-CE, but that problem might be resolved in the future.
And this was made since I want uv-style global deduplication for large game assets/mods (and potentially local AI models or other large artifacts), without requiring Administrator rights or Windows Developer Mode. (I thought about this before I knew that Pandora Launcher has that feature, but I don't care btw)
twilight-cas stores content-addressed blobs under <cas_root>/sha1/<xx>/<hash> via atomic ingest, and provides a cascading link_or_copy strategy:
Hardlink -> NTFS Directory Junction (dirs on Windows) -> Symlink -> Regular Copy fallback
So if shared and instances live on different drives (EXDEV), or the target filesystem is FAT32/exFAT/ReFS, it degrades gracefully instead of failing.
Technical issues and current limitations:
0.1.0currently uses SHA-1 andtokioasync fs.- For
0.1.1/0.2.0, I'm already adding safer symlink/junction unlink helpers (unlink_or_remove) in the repo and thinking about SHA-256 / BLAKE3 support plus native CoW reflinks (Btrfs/XFS/APFS) before hardlinking, which is hard as hell.
Links (if you want):
- Crates.io: crates.io: Rust Package Registry
- Docs.rs: twilight_cas - Rust
- Source: TwilightMC-OSS/crates/twilight-cas at main · BlackCatOfficialytb/TwilightMC-OSS · GitHub
Any feedback for this project will help me a lot and I'm appericiated about that!
Sincerely,
BlackCat
Note that some of them are from Grammarly and a paraphrasing tool since I'm still bad at writing this without getting grammar errors, bruh.
1 post - 1 participant

