| Crates.io | grainfs |
| lib.rs | grainfs |
| version | 0.1.1 |
| created_at | 2025-09-05 03:35:29.559591+00 |
| updated_at | 2025-09-05 03:38:02.293054+00 |
| description | A pleasant file system API |
| homepage | |
| repository | https://codeberg.org/alexkotusenko/grainfs |
| max_upload_size | |
| id | 1825060 |
| size | 36,976 |
An simple & lightweight file system API library.
This library abstracts away the mess that working with std::path and std::fs modules is, and exposes some functions you'd often use in your application (e.g. reading files, writing to files, checking if a file exists, etc).
Module overview:
path - general path operationsdir - directory operationsfile - file operationstypes - definitions for different filetypessearch - basic searching functionalityenv - read environment variables (not fs per se, but environment variables are often paired with fs operations, so a lightweight API was included)This is meant to be a tiny, dependency-free repo for a more pleasant experience when working with the file system API.
While this is technically a reinvention of the wheel, the amount of cognitive strain this library saves me from when working with files is worth the effort I put into it.
Expect breaking changes at any point until version 1.0.0.
Any contributions are welcome!