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

#832 in Filesystem

Download history 48/week @ 2024-08-09 45/week @ 2024-08-16 50/week @ 2024-08-23 23/week @ 2024-08-30 19/week @ 2024-09-06 32/week @ 2024-09-13 82/week @ 2024-09-20 70/week @ 2024-09-27 53/week @ 2024-10-04 59/week @ 2024-10-11 45/week @ 2024-10-18 88/week @ 2024-10-25 62/week @ 2024-11-01 79/week @ 2024-11-08 41/week @ 2024-11-15 52/week @ 2024-11-22

249 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
~75K SLoC