Lodestone-Team / lodestone

A free, open source server hosting tool for Minecraft and other multiplayer games
https://www.lodestone.cc/
GNU Affero General Public License v3.0
845 stars 31 forks source link

Write a file backed, write through database with update notification #385

Open CheatCod opened 5 months ago

CheatCod commented 5 months ago

Description

I would like Lodestone Core to respond in real time when a config file is changed. Develop a crate that implements the following functionalities:

  1. A wrapper type above any Serde type that syncs any write to the inner type to the file, return failure if failed to write
  2. Emit notification when the underlying file is changed; the creator of the type should be able to hook into this with an async function