5 releases

0.2.0 Aug 23, 2021
0.1.3 Nov 19, 2020
0.1.2 Mar 29, 2020
0.1.1 Mar 19, 2020
0.1.0 Mar 11, 2020

#877 in Filesystem

Download history 1/week @ 2023-12-11 6/week @ 2023-12-18 4/week @ 2024-01-01 10/week @ 2024-01-15 61/week @ 2024-01-22 58/week @ 2024-01-29 19/week @ 2024-02-05 34/week @ 2024-02-12 56/week @ 2024-02-19 57/week @ 2024-02-26 28/week @ 2024-03-04 45/week @ 2024-03-11 78/week @ 2024-03-18 55/week @ 2024-03-25

207 downloads per month
Used in rojo

MIT license

30KB
636 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–11MB
~88K SLoC