dbstruct 0.6.0

Build a typed database by defining a struct
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

enum CustomKeyType {}
struct CustomValType;

fn main() {
    // ONCE the output changes and the span starts highlighting the 
    // key and value type in the struct we can close: 
    // https://github.com/dvdsk/dbstruct/issues/13

    #[dbstruct::dbstruct(db=sled)]
    struct PersistentData {
        the_map: HashMap<CustomKeyType, CustomValType>,
    }
}