News for hackers. Stuff that matters.
Re:In-Memory Filesystems in Rust by tayo42 on Monday August 25, 2025 @08:09PM (#45020730)
You need to mount and unmount fikesystems to do that.

Take a look at the library mentioned,afero, and you'll see how nice it handles working with the file system in tests.

You can have everything in memory, and a whole new fs in each test

Re:In-Memory Filesystems in Rust by jen20 on Tuesday August 26, 2025 @11:26AM (#45027909)
The problem is it only tests trivial properties of the API. That might be enough for some things, but it’s not a panacea.