A Rust crate that mimics smart contract storage in system code.
It provides macros for storing and retrieving various data types in a local file system, with configurable storage paths and file extensions.
- Create an .env file using the .env.example file as a template.
- Set the environment variables STORAGE_PATH and FILE_EXTENSION in .env
- Add dotenvĀ crate to your Cargo.toml
- UseĀ theĀ dotenvĀ crateĀ andĀ callĀ dotenv::dotenv().ok(); inĀ theĀ function you are using