6 releases

0.3.0 Jul 26, 2024
0.2.0 Aug 23, 2021
0.1.3 Nov 19, 2020
0.1.2 Mar 29, 2020

#766 in Filesystem

Download history 29/week @ 2024-12-04 32/week @ 2024-12-11 27/week @ 2024-12-18 8/week @ 2024-12-25 22/week @ 2025-01-01 24/week @ 2025-01-08 30/week @ 2025-01-15 27/week @ 2025-01-22 74/week @ 2025-01-29 74/week @ 2025-02-05 50/week @ 2025-02-12 65/week @ 2025-02-19 68/week @ 2025-02-26 50/week @ 2025-03-05 51/week @ 2025-03-12 54/week @ 2025-03-19

229 downloads per month
Used in rojo

MIT license

33KB
700 lines

memofs

Crates.io

Implementation of a virtual filesystem with a configurable backend and file watching.

memofs is currently an unstable minimum viable library. Its primary consumer is Rojo, a build system for Roblox.

Current Features

  • API similar to std::fs
  • Configurable backends
    • StdBackend, which uses std::fs and the notify crate
    • NoopBackend, which always throws errors
    • InMemoryFs, a simple in-memory filesystem useful for testing

Future Features

  • Hash-based hierarchical memoization keys (hence the name)
  • Configurable caching (write-through, write-around, write-back)

License

memofs is available under the terms of the MIT license. See LICENSE.txt or https://opensource.org/licenses/MIT for more details.


lib.rs:

Implementation of a virtual filesystem with a configurable backend and file watching.

memofs is currently an unstable minimum viable library. Its primary consumer is Rojo, a build system for Roblox.

Current Features

  • API similar to std::fs
  • Configurable backends
  • StdBackend, which uses std::fs and the notify crate
  • NoopBackend, which always throws errors
  • InMemoryFs, a simple in-memory filesystem useful for testing

Future Features

  • Hash-based hierarchical memoization keys (hence the name)
  • Configurable caching (write-through, write-around, write-back)

Dependencies

~1–8.5MB
~72K SLoC