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

#1164 in Filesystem

Download history 32/week @ 2024-11-30 30/week @ 2024-12-07 38/week @ 2024-12-14 14/week @ 2024-12-21 15/week @ 2024-12-28 17/week @ 2025-01-04 31/week @ 2025-01-11 31/week @ 2025-01-18 46/week @ 2025-01-25 81/week @ 2025-02-01 46/week @ 2025-02-08 68/week @ 2025-02-15 64/week @ 2025-02-22 68/week @ 2025-03-01 37/week @ 2025-03-08 40/week @ 2025-03-15

223 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